在一些需验证的页面中,可以通过session来校验用户的合法性,但是用户选择脱机后又可以查看那些页面 好像是IE把它们存到了本地中,该怎样使页面不会被其它用户看到.要求通过WEB程序来实现
---------------------------------------------------------------
做不到,既然存在客户端你就难以控制了。
---------------------------------------------------------------
清除网页在客户端的缓存试试:
HTM网页
1<meta content="no-cache" http-equiv="pragma"/>
1<meta content="no-cache, must-revalidate" http-equiv="Cache-Control"/>
1<meta content="Wed, 26 Feb 1997 08:21:57 GMT" http-equiv="expires"/>
或者
1<meta content="0" http-equiv="expires"/>
ASP网页
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"