ASP .NET Login Session How to destroy session object when logging out from Home Page??

Posted by Vinodh Kumar on Stack Overflow See other posts from Stack Overflow or by Vinodh Kumar
Published on 2010-03-31T05:25:12Z Indexed on 2010/03/31 5:53 UTC
Read the original article Hit count: 454

Filed under:
|
|
|

I have created a website. I login with username and password and after authenticating i redirect the user to Home Page. When the user clicks Logout, they are redirected to the Login Page. But after this when i click the BACK button on the browser, it again goes back to the Home Page with that user's login credentials. I have used Session["username"]=null in the Page_Load function of Home Page. How to avoid going back to the Home Page when the BACK button is clicked by the User??

© Stack Overflow or respective owner

Related posts about asp

Related posts about .NET