Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
after entering user name and password it lead me to main page. but i want If I enter back arrow it don't allow me to go forward without entering password. so how can i do this.?
Posted
Updated 15-Nov-12 6:56am
v2

1 solution

Turn off caching in your pages, so the browser does not show a cached version.

Here[^]

<%@ OutputCache Duration="0" VaryByParam="None"%>

should do it.

This[^] is also useful. In theory, the plain HTML way to do it is:

<meta http-equiv="Pragma" content="no-cache">

although when I googled I found someone who recommended all of this:

XML
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
 
Share this answer
 
v2

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