hi
which event will raise when we click back arrow button of web browser, and tell me how to handle this. my problem is i click logout button, i redirect to home page and i click back arrow button of web browser it display previous how to handle this. i do the all session values is null. please give a solution.
Thanks.
Loading
tango charliePosted Apr 27, 2010, 3:41 AM
{
Session.Abandon();
FormsAuthentication.SignOut();
Response.Cookies["TestCookies1"].Expires = DateTime.Now.AddYears(-1);
Response.Cookies["TestCookies2"].Expires = DateTime.Now.AddYears(-1);
Response.Redirect("~/login.aspx");
}
Try this on logOut, It wud help u and still thr is same issue then
try this after writing upper portion. (its customized method of doing the same :) )
write a method on the load of masterpage
function GoBack() {
if (document.cookie == "")
document.location = '<%=HttpContext.Current.Request.ApplicationPath%>' + "/login.aspx";
}
Don't forget to mark it as answer, if it works....
Dipa AhujaPosted Apr 26, 2010, 9:21 AM