Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I prevent cookies from expiring when my browser is closed?

share|improve this question
The best way to keep cookies fresh would involve an airtight container or bag and a slice of bread. – Dustin G. Sep 10 '11 at 21:35

You can't. Those cookies are set that way for security. If you are asking about how to set a cookie's expiration date on your own site, then see these PHP and Javascript methods.

share|improve this answer
By "you can't" do you really mean "you shouldn't"? Or do you mean "it's impossible"? – Mehrdad Sep 13 '11 at 4:53
I mean that some sites employ not only timeouts for validating cookies, but a hashed value that also has a server-side timeout value that will no longer authenticate no matter what the local timeout value is. – jsejcksn Sep 15 '11 at 21:51

Use a cookie editor?

share|improve this answer
Awww... it doesn't seem to work with my version of Chromium. :( But +1 thanks anyway, I'll give it a try later if I can. – Mehrdad Sep 13 '11 at 4:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .