hello guys how r u ?
my question is that, i have created web application but the problem is that, when user press logout button then it comes on login screen but when user press browser back button it comes on user profile page back again that is which i dont want ...
reply soon
Thanks
Loading
Rishikesh Kumar SinghPosted Mar 1, 2013, 12:27 AM
you only need to do is just clear and remove all the session variables before redirecting the page to the login page on click of loggout button....
For example:- login.aspx is your login page and u r using two session variables Sessio["uid"] and session["role"] then ....on click event of logout button write following codes....
Session.Abandon();
Session.Remove("uid");
Session.Remove("role");
Session["uid"] = null;
Session["role"] = null;
Response.Redirect("~/login.aspx");
}
i hope, definitely your problem will be resolved.
If it helps you then mark as an accepted answer otherwise let me know..!!