Click here to Skip to main content
15,891,529 members
Articles / Web Development / ASP.NET

Disabling browser's back functionality on sign out from Asp.Net

Rate me:
Please Sign up or sign in to vote.
2.80/5 (38 votes)
11 Aug 20053 min read 260.3K   3.6K   47  
After sign out from site if browsers back button is clicked it shows the previous page, though user is sign out from the site, to avoid this disabling of cache is done
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style7 
{
	font-family: Arial, Helvetica, sans-serif; 
	font-size: 12px; 
	font-weight: bold; 
	color: #0051a5; 
}

.style8 
{
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
	font-weight: bold;
}
.style9 
{
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	text-decoration: none;
}
.style10 
{
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: Green;
	text-decoration: underline;
}
label
{
	font-family: Arial, Helvetica, sans-serif; 
	font-size: 12px; 
	color: Black 
}
.GridHeader
{
	background-color:#006699; 
	FONT-WEIGHT: bold;
    FONT-SIZE: 12px;
    COLOR: #FFFFFF;
    FONT-FAMILY: Arial, Helvetica, sans-serif;
    border-width: 1;
    border-color: black;
    Border-Style :solid;
}

.GridItems
{
	border-top: #666666 1px solid;
	border-color:#006699;  
	FONT-WEIGHT: normal;
    FONT-SIZE: 12px;
    COLOR: #000000;
    FONT-FAMILY: Arial, Helvetica, sans-serif;
	border-bottom: #666666 1px solid;
	vertical-align:super;
	border-width: 1;
    border-color: black;
    Border-Style :solid ;
}

.GridAltItems
{
	border-top: #666666 1px solid;
	border-color:#006699;  
	FONT-WEIGHT: normal;
    FONT-SIZE: 12px;
    COLOR: #000000;
    FONT-FAMILY: Arial, Helvetica, sans-serif;
	border-bottom: #666666 1px solid;
	vertical-align:super;
	border-width: 1;
    border-color: black;
    Border-Style :solid ;
	background-color: #f9f9f9;
	
}
INPUT
{   
	BACKGROUND-COLOR: F0F8FF;
    BORDER-BOTTOM: #9e9e9e 1px solid;
    BORDER-LEFT: #9e9e9e 1px solid;
    BORDER-RIGHT: #9e9e9e 1px solid;
    BORDER-TOP: #9e9e9e 1px solid;
    font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: black;
	text-decoration: none;
}

SELECT
{
    BACKGROUND-COLOR: F0F8FF;
    BORDER-BOTTOM: #9e9e9e 1px solid;
    BORDER-LEFT: #9e9e9e 1px solid;
    BORDER-RIGHT: #9e9e9e 1px solid;
    BORDER-TOP: #9e9e9e 1px solid;
    
    FONT-FAMILY: Arial, Verdana;
    FONT-SIZE: 8pt;
}

.ErrorMessage 
{
	font-family: Arial, Helvetica, sans-serif; 
	font-size: 12px; 
	font-weight: bold; 
	color:Red; 
}
.GridPaging
{
	font-size : 10pt;
	font-family:Verdana;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
India India
Rohit Dighe
B.E. Computer from University of Pune, India.

Working on Asp.Net and C# from 2 years

Comments and Discussions