session variable auto-delete?
Posted: Thu Aug 19, 2004 1:05 pm
I made a backend system for a client which requires her to login with a username and password, and when the user logs in, it creates a session variables, storing the username and password, and when the user click the logout link, it destroys the session variables.
However, if the user just closes the browser, the session variables are STILL stored in the server, which is bad for security IMO, and there's quite a lot of sessions stored in my client's webserver. Is there anyway to get the session to auto-delete or delete it when the user just closes the browser than hits the logout link?
Any help would be appreciated again.

However, if the user just closes the browser, the session variables are STILL stored in the server, which is bad for security IMO, and there's quite a lot of sessions stored in my client's webserver. Is there anyway to get the session to auto-delete or delete it when the user just closes the browser than hits the logout link?
Any help would be appreciated again.