If you don't set an expiration for a cookie, will it be lost when the browser is closed?
views:
74answers:
2
+1
A:
If it has no expiration, then it will. It will be treated as a Session cookie. An exception to this are new versions Firefox, which can save your session.
Greg Ogle
2009-05-14 14:23:01
A:
You are correct. If you don't set an expiration for a cookie it will be stored only in memory and removed when the session ends. If you do set an expiration, it will be stored on the hard disk.
AaronS
2009-05-14 14:28:47