Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
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
add comment

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.

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
1  
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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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