Subject: Problem with ASP.NET "signout"
Posted By: sharj Post Date: 12/8/2005 9:46:10 AM
When the method SignOut() was called, I would redirect the webpage to the login page, thinking that the SignOut() method would have deleted the cookie (as it should)

However, when I clicked back to see if the SignOut() method is working properly, I was told that the page has expired. But I am surprised to see that I could still access the private data if I pressed the Refresh button.

Anyone has any idea how to get around this problem? Thanks in advance for who that reply. :)


Reply By: planoie Reply Date: 12/12/2005 3:44:50 PM
This might be a problem with page caching.  If the browser or any upstream software/hardware is caching the page, then the browser request won't hit the server which would know the page can't be accessed and refuse access to it.

You might have to play around with cache settings to solve this.

-Peter
Reply By: sharj Reply Date: 1/10/2006 5:32:15 AM
Thank you for your reply! : ) It does make a lot of sense, why didn't I think of it.

So I have tried means to clear the cache but to no avail. Does anyone know of a "cheap" and convenient way to do so?

Reply By: TitoPeru Reply Date: 1/23/2006 2:10:31 AM
I don't think there is nothing to do with caching.
I think it have to be related to session, many people think that Session and Authentication are the same and they don't. You can SignOut user but Session variables are still there.
Try Session.Abandon() then your FormsAuthentication.SignOut()

Go to topic 39053

Return to index page 388
Return to index page 387
Return to index page 386
Return to index page 385
Return to index page 384
Return to index page 383
Return to index page 382
Return to index page 381
Return to index page 380
Return to index page 379