I am using asp.net forms version 4 and using the built in FormsAuthentication. I have selected to not persist the User.
FormsAuthentication.RedirectFromLoginPage(userIAmUsing, false);
When I close the browser in IE and Firefox. My session variables are destroyed and I am asked to re-login when I return to the page. However, in my Chrome settings I have the "Continue where I left off" setting checked. When I close the browser in Chrome, it is persisting the cookie against my (the developer's) wishes. In fact, even after I have logged out of my machine, the session is persisted. That being the situation, does anyone know of any thing that I can do as a developer to override this behavior and not allow the session to persist after browser close? In other words, can I make Chrome behave exactly like other browsers even if the user has checked that setting?
If you close the web browser window without closing the connection session, the session remains active.
We can clear the session storage by using the clear() method.
The idle browser tab will time out even if you are actively doing something on another tab of the browser or scrolling through the idle web page. The solution is to “refresh” the idle tab (which reloads the website) by clicking the curved arrow icon at the right side of the Web address bar.
Cookies and sessions both have timeouts. You can set the timeouts to be short so Chrome wont try to reuse them after their time is up.
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