Jump to content

invalidation of a cookie


jimfog

Recommended Posts

I read this tutorial here: http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice/ If I understood correctly, the moment the user is authenticated(after returning the site), is the moment we create a brand new cookie. That means a new cookie every time the user returns to the site. Why do we do that, for security reasons?

Link to comment
Share on other sites

I read this tutorial here: http://fishbowl.past..._best_practice/ If I understood correctly, the moment the user is authenticated(after returning the site), is the moment we create a brand new cookie. That means a new cookie every time the user returns to the site. Why do we do that, for security reasons?
By the way, this forum here, does not create a new cookie every time a visitor returns.
Link to comment
Share on other sites

Ok...I will invalidate the old cookie...by just setting its expiration date in the past? Does the cookie invalidation process includes anything else-any db action maybe?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...