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

link|improve this question

69% accept rate
1  
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
feedback

2 Answers

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.

link|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. – pattern86 Sep 15 '11 at 21:51
feedback

Use a cookie editor?

link|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
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.