Session Problem

  • Thread starter Thread starter Stephen
  • Start date Start date
S

Stephen

HI,

I have created an application that has a logout.aspx page. here I clear the
session variables and redirect the user to the login page, but if I dont
close the brower and hit the "back" button. the user is directed to the old
pages.
How do i avoid this?

Please advice,
Stephen
 
HI,

I have created an application that has a logout.aspx page. here I
clear the session variables and redirect the user to the login page,
but if I dont close the brower and hit the "back" button. the user is
directed to the old pages.
How do i avoid this?

Please advice,
Stephen

For logout.aspx page:

private void Page_Load(object sender, System.EventArgs e)
{
Session.Abandon();
Response.Redirect("login.aspx");
}
 
Back
Top