Jump to content

Killing a session


Biax

Recommended Posts

Hello everyone, this is probably a totally lame question, but I've been developing my website that has a whole bunch of session variables for things like user log in and navigation.

But if I browse away from the website and come back to it, it's still remembering values, and I don't want that! So how can I set it up so it destroys the session, ie, how do I know when the user has browsed off the website?
Link to comment
Share on other sites

I guess it all depends on what you want to accomplish. If you want to setup a session timeout arrangement where the user is logged out based on a set time of inactivity then tleisher is correct and a timeout script is best. However, the timeout script will not work if the user leaves the site and returns in time so as not to timeout.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.