Click here to Skip to main content
15,999,626 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using login control in asp.net.I want to disable a userr from going back to content page after logout.
Posted

1 solution

This gets asked all the time. You need to turn off caching so that your page is not shown from the cache, but even if it is, if your login system is written properly, then any attempt to request a new page from the page the user goes back to, should fail.

C#
Response.Cache.SetCacheability(HttpCacheability.NoCache);
 
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