HI,
I want to provide security to my website like
1. If he use back button then i need to expire the session
2. If he edietd the session then also i need to abandon the session
3. IF he entered other site url rather than my domain name i need to abandon the session
How can i do this can anyone help me regarding this.
Thanks,
Manoj
Niradhip ChakrabortyPosted Jul 29, 2008, 1:26 AM
For back button security you can use the following code in page behind:
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
string sb;
sb = "";
Page.RegisterClientScriptBlock("clientScript", sb);
}
Nipun TomarPosted Jul 28, 2008, 3:31 PM
To disable browser chaching use
Response.Cache.SetCacheability(HttpCacheability.NoCache);
on page_load()
Use
to disable back button