cookie和在ie8和ie9中的缓存 [英] cookies and cache in ie8 vs ie9

查看:83
本文介绍了cookie和在ie8和ie9中的缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的注销代码.

This is my logout code.

FormsAuthentication.SignOut()
Session.Clear()        
Response.Cookies(Constants.CookieCompanyCode).Expires = Date.Now.AddHours(-1)
RedirectToLogin()



这是母版页的meta部分:



this is the meta section from master page:

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
 <meta http-equiv="Pragma" content="no-cache">
 <meta http-equiv="Expires" content="0">
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />




这在ie9上按预期工作,但在ie8上它重定向到登录页面,但仍显示前一页的标题菜单,您可以单击它并进入网站.如果在ie8上注销后删除cookie和缓存,它可以正常工作,所以我假设这与他们有关.有任何建议吗?




This is working as expected on ie9 but on ie8 it redirects to login page but still shows header menu from previouspage and you can click on it and enter the website.If I delete cookies and cache after logout on ie8, it works correctly so I am assuming that it has something to do with them. Any suggestions ??

推荐答案

嗨 我可以看到一个与此有关的链接.请参考,这可能会对您有所帮助.

http://forums.asp.net/t/1366905.aspx/1 [ ^ ]


问候
多米尼克
Hi I could see one link regarding this. Please refer, this may help you.

http://forums.asp.net/t/1366905.aspx/1[^]


Regards
Dominic


这篇关于cookie和在ie8和ie9中的缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆