Asp – If you don’t set an expiration for a cookie, will it be lost when the browser is closed

asp.netcookies

If you don't set an expiration for a cookie, will it be lost when the browser is closed?

Best Answer

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.

Note, Chrome has a feature that keeps a process open, so closing the browser does not necessarily clear your session. Check your Task Bar for the Chrome icon.