Reputation: 374
We have a strange problem in Safari. When the user logs out of our Web Application we expire the forms authentication with the following
FormsAuthentication.SignOut();
Session.Abandon();
This works fine in IE and Firefox (when the user hits the back button they are presented with a page expired message and are forced to login) but in Safari the last page the user was working on shows up. I tried many of the suggested thinks like setting the Response.Expires but nothing helps , Has anyone faced this problem ? Do u have any suggestion / workarounds ?
Thanks
Upvotes: 2
Views: 1279
Reputation: 3981
i tried contacting apple, no answer so far. the issue persists.
in the mean time (for your testing only - and possibly as a recommendation to your users): go to DEVELOP > DISABLE CACHES and it should now work as expected.
Upvotes: 0
Reputation: 25523
Are you sure the page isn't just cached on the browser?
Have you tried hitting the back button, and then clicking on some links? Does it prompt you to log in?
It sounds like browser caching to me.
Perhaps you could try:
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
I'm not entirely sure that is going to work, however.
Upvotes: 1
Reputation: 7080
Sounds like Safari is displaying a cached copy of the page.
You might want to read Disabling browser caching for all browsers from ASP.NET
Upvotes: 0
Reputation: 2554
Are you using Safari 4 beta? If so, I've had this same problem. Not sure what's causing it, although I assume mishandling cookie destruction.
Upvotes: 0