Click here to Skip to main content
15,898,938 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
I have an ASP.NET website in which the user has the Login/Logout functionality. There are some pages which are viewable only if the user is logged in. Now, after the user signs out, I noticed that the user is still able to see this restricted page on pressing the back button. I want to create the functionality such that once the user signs out, the page should not be viewable. How can that be done?

P.S I am not using built in Login controls in ASP.NET
Posted
Comments
Sergey Alexandrovich Kryukov 21-Jan-11 14:45pm    
Good, valid question - my 5.
Hi, optimus_prime, are you doing good?
--SA
optimus_prime1 21-Jan-11 23:05pm    
I am fine SAKryukov. Taking a break from C++ for some time ;)
Thanks for the vote!

1 solution

Have a look at Sandeep's tip

Browser back button issue after logout[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900