Josh_Blade
asked on
Removing Session Variables on Leaving site.
On login to my website, I create a session variable. I'm trying to find out if there's a way to remove that session variable if the user leaves the web site (ie they close that browser tab or just type in a different url).
After doing some research, I'm afraid there might not be a good answer to this since there's no page request to our site when a user does that, but you guys have surprised me before.
After doing some research, I'm afraid there might not be a good answer to this since there's no page request to our site when a user does that, but you guys have surprised me before.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The person that pays me asked me to do it. Not sure why exactly he would care. Thanks though :)
The closest anyone has come is a javascript 'pinger' that uses AJAX to let the server know that the window for the session is still open. What that really does is continuously reset the session timer to extend the session.