how to end the session of chrome browser in asp.net (it is working in IE but not in Chrome)
-
I have created web application in asp.net. After session.Abandon() i am able to end the session in which i cannot go back and it will redirect to loginpage. But if i run in Google Chrome browser it is not working and if i click back it will come priviously opened page with data. how to end the session of chrome browser in asp.net. If anybody knows, please reply me. Thanks in advance.
-
I have created web application in asp.net. After session.Abandon() i am able to end the session in which i cannot go back and it will redirect to loginpage. But if i run in Google Chrome browser it is not working and if i click back it will come priviously opened page with data. how to end the session of chrome browser in asp.net. If anybody knows, please reply me. Thanks in advance.
-
Technically session.removeAll works. Keep in mind that it's a server side call, and will erase all the session values on the web server. Now if the browser still honors the session value, or thinks that the session value is valid, then that's a browser issue, or something else on the server is keeping the session value alive. So you make a session in a test page, that contains a word or something, and click a button to remove all, and see if the session is erased., and play around with it. I know that in certain modes, the session value will write a cookie on the client, with the session values. Using Firefox to examine the cookie values is useful to confirm the removal of the session value. Chrome has alot of bugs in it, and became very bloated with code. It could just be a Chrome issue. That's out of your control, nothing you can do about it. [EDIT] Maybe it's the way you implemented the session, eg.
Dim m_context as httpcontext = httpcontext.current
m_context.session.add("Login", true)if (true = m_context.session("Login") then
m_conetxt.response.redirect("admin.aspx")
End ifor perhaps the correct context was not used to create or remove the session, or the spelling of the session name does not exactly match. Don't forget to delete your browser cache for a true test.