I have an application that sets a session cookie during the begin request of an application. The expectation is that this clears out when the browser is closed and it is working as designed for most scenarios except when browsing using Chrome on Android device or an iPhone.
Looks like a Smartphone version of Chrome doesn't clear off session cookies...
Did anyone encounter this issue?
You can set a cookie to expire at the end of the browser session by setting the HttpCookie. Expires property to DateTime. MinDate , or not setting the property at all.
They manage the lifecycle of theses IDs, and once they expire the ID on their end, your cookie is meaningless. But usually session cookies are assumed to be deleted by the browser when the browser is closed, so the length of a "session" is supposed to be one sitting.
Yes the Session cookie expires. In addition to the 30 minute default timeout (if the visitor is idle for 30 minutes) the 'Session ID' cookie will expire at the end of an internet browser session.
Session cookies expire once you log off or close the browser. They are only stored temporarily and are destroyed after leaving the page.
Chrome on the desktop has the same problem. It doesn't kill session cookies because it keeps a process running in the background. Assume it's the same 'feature'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With