Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I create login and logout but when i click on log out button page redirect on login but if i click on back button on browser the page redirect on logout page.
Posted
Updated 1-Apr-11 21:13pm
v2
Comments
Albin Abel 2-Apr-11 2:03am    
try clear the cookie cache.

Disabling browser’s back functionality on logout from Asp.Net
Back Button issue after Logout in ASP.NET

If i misunderstand your question, please feel free to correct me.
I hope the above information will be helpful. If you have more concerns, please let me know.
 
Share this answer
 
Comments
shirishbatule 14-May-11 7:05am    
hi,
i write code on log out button the seeeion.remove("user"); and Response.Redirect("Login.aspx"); and when i click on logout button its redirect on login page but after that i click on browser back button its redirect on back page.........i need the code for proper logout and when i logout i dont want to go back page.........please help me
Once you have logged out, you should not be able to go back to the last page - so, IMO, this is the correct way this is working.
 
Share this answer
 
Comments
shirishbatule 14-May-11 7:06am    
hi, i write code on log out button the seeeion.remove("user"); and Response.Redirect("Login.aspx"); and when i click on logout button its redirect on login page but after that i click on browser back button its redirect on back page.........i need the code for proper logout and when i logout i dont want to go back page.........please help me
If I understand your question well,
this is a very common issue asked by so many people. Googling for the issue would have given you the solution easily.

We have a tip/trick here in CP for the same - Browser back button issue after logout[^].

Check it out. I hope it helps!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900