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");
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Session and URL problem 3
Clearing the Session 6
session variable 2
Session Problems 1
Session returns null 5
Session problem 1
.NET custom security: still possible? 1
Sharing session variables between pages 1

Back
Top