关于response.Expire的问题

herony420 2004-03-29 10:41:56
由于后退的原因,想让登录后的页面一经后退就失效,可是,加上response.expire后网页直接不能进入了,每次一到这个页面就出错,请问这是为什么呢?
...全文
80 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
herony420 2004-03-29
  • 打赏
  • 举报
回复
这个是不是还有别的什么设置或者说法??
bingbingcha 2004-03-29
  • 打赏
  • 举报
回复
呵呵。。来晚了。哎。。。
herony420 2004-03-29
  • 打赏
  • 举报
回复
response.buffer = true
response.expires = 0
response.expiresabsolute = now() - 1
response.addHeader "pragma","no-cache"
response.addHeader "cache-control","private"
Response.cachecontrol = "no-cache"
解决,谢谢大家的帮忙
interest 2004-03-29
  • 打赏
  • 举报
回复
我也想了解
herony420 2004-03-29
  • 打赏
  • 举报
回复
怎么说那,上面几种方法我都试了,但是都没有效果,甚至出错,我想让客户端在后退时出现"网页已过期的警告",各位大侠,请教了
herony420 2004-03-29
  • 打赏
  • 举报
回复
有呀,有这个缓冲打开,可是就是进不去页面
shli 2004-03-29
  • 打赏
  • 举报
回复
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = no-cache
它强制浏览器重新访问服务器下载页面,而不是从缓存读取页面。
interest 2004-03-29
  • 打赏
  • 举报
回复
你的也面有这个吗?

response.buffer=true
herony420 2004-03-29
  • 打赏
  • 举报
回复
怎么样使之过期呢
herony420 2004-03-29
  • 打赏
  • 举报
回复
怎么这样的问题没有人回答呢??我一结贴肯定给分

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧