i have created a MVC application , without using asp.net membership provider, i want to redirect the user to the login page if the user logged out and press back button from explorer.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t do this, as the page the user see when clicking ‘back’ is in fact the cached version of the page.
The best you can do is request the browser to not cache logged in pages, to do this you would place:
on all pages you consider shouldn’t be ‘back button’ accessible.
This is only a request however, browsers are under no obligation to oblige.