|
|
hello everybody,
I am preparing an asp login logout script with session variables.But i am facing a problem that after i successfully log out from my page, i can go to the previous page by using the back button.How can i curb this problem that whenever i go to the previous page after logging out i should get the message as to that my session has expired.
Can any body please help me.
|
|
|
|
i dont know how to fix this problem, but i do know that most web pages tell you to close the browser to successfully end your session. try closing the browser after the user has logged out and then go back to your history and see if you can still access the pages w/o logging back in to see if that keeps it secure.
|
|
|
|
U have to kill d session.Then you can able to logout succesfuuly.
This is the code you have to use on logout button:
Session.RemoveAll();
string hstring = "<script language='javascript'> window.location.href='/forum/Logout.html'</script>";
Page.RegisterStartupScript("one", hstring);
hope you wil get now
Banu
|
|
|
|
thanks! i knew if i waited patiently for 5 years someone would answer! :) just teasing thanks man!
|
|
|