Deleting Sessions
I need to run the function "session.abandon" when the user leaves the website. For example I have the session to time out in 20 minutes. Instead of waiting 20 minutes before his session deletes, I want to delete it the second that he leaves or exits the browsing window of my site. I, along with others, figured out how to do it with a popup window on exit, but i dont like that at all. There has to be a diffrent way, but i am just not sure.... If anyone could help that would be great!
|