Answered by:
After logout browser back button issue??

Question
-
hello all,
I have a website i add a login page for user to login and perform their action but on logout click user goes to login page but after it when user click on browser back button it can go back on every page on website but i need after logout click user go on to the login page and must login first to visit the website. I have using the form authentication.
please help me......
thanks....
Saturday, August 25, 2012 5:15 AM
Answers
-
I'm not sure but I think you need to delete the cookie. See if this webpage helps
http://msdn.microsoft.com/en-us/library/ms178195(v=VS.100).aspx
jdweng
- Proposed as answer by Jason Dot WangModerator Tuesday, August 28, 2012 5:32 AM
- Marked as answer by Jason Dot WangModerator Monday, September 3, 2012 8:46 AM
Saturday, August 25, 2012 11:24 AM -
Are you using persistent cookies? You can verify this by checking if you pass true to the FormsAuthentication.SetAuthCookie method. If you are then you likely want to change that to false and when user logs out you need to delete the cookie as Joel has adviced.
- Proposed as answer by Jason Dot WangModerator Tuesday, August 28, 2012 5:32 AM
- Marked as answer by Jason Dot WangModerator Monday, September 3, 2012 8:46 AM
Saturday, August 25, 2012 5:49 PM
All replies
-
I'm not sure but I think you need to delete the cookie. See if this webpage helps
http://msdn.microsoft.com/en-us/library/ms178195(v=VS.100).aspx
jdweng
- Proposed as answer by Jason Dot WangModerator Tuesday, August 28, 2012 5:32 AM
- Marked as answer by Jason Dot WangModerator Monday, September 3, 2012 8:46 AM
Saturday, August 25, 2012 11:24 AM -
Are you using persistent cookies? You can verify this by checking if you pass true to the FormsAuthentication.SetAuthCookie method. If you are then you likely want to change that to false and when user logs out you need to delete the cookie as Joel has adviced.
- Proposed as answer by Jason Dot WangModerator Tuesday, August 28, 2012 5:32 AM
- Marked as answer by Jason Dot WangModerator Monday, September 3, 2012 8:46 AM
Saturday, August 25, 2012 5:49 PM