-
Log Out Problem
Dear All,
I have a problem with my application in logout feature. When I logged out from my system... A person can easily return to the last visited page by simply clicking on the BACK tab of my browser.
That means I just redirected the page to logout page when anyone clicks on LOgOut Button.
How can I prevent this problem.
Its urgent, Please help me, if possible.
Rajib
-
Re: Log Out Problem
Are you checking for a valid session and when you log them out are you clearing any cookies? What method of logging in are you using? Did you set a session timeout?
-
Re: Log Out Problem
Disable the caching on your pages so that the page is reloaded from the server each time.
Response.Cache.SetCacheability(HttpCacheability.NoCache)
-
Re: Log Out Problem
But then that will slow the loading of every page, correct?
-
Re: Log Out Problem
As opposed to the incorrect version of the page being loaded?
It'll be irrelevantly(??) slower, but since the code must be executed in order to determine the user's status, it must not be in the cache.
-
Re: Log Out Problem
Ok ASP.NET Guruâ„¢ :afrog: