积极答复者
系统退出后,返回到登陆页面,怎样才能无法点击历史记录而再次进入系统

问题
答案
-
你在你的主页面判断用户下的登录信息是否存在,如果不存在,就转到登录页面
你退出的时候,把SESSION和一些相关信息清空,
http://blog.csdn.net/zx13525079024- 已标记为答案 BoberSongModerator 2010年9月24日 7:07
-
你好:
Session.Abandon();
Response.Write("<script>window.location.href='Login.aspx'</script>");
很简单,就是把Response.Redirect改为Response.Write,输出脚本,实现跳转。http://www.codesky.net/article/doc/201004/2010041706492.htm
http://blog.csdn.net/lhypang2006/archive/2008/03/11/2170751.aspx或者设置页面不缓存,当退出后再浏览页面时则无法显示。
希望对你有所帮助。
- 已标记为答案 BoberSongModerator 2010年9月24日 7:07
全部回复
-
你在你的主页面判断用户下的登录信息是否存在,如果不存在,就转到登录页面
你退出的时候,把SESSION和一些相关信息清空,
http://blog.csdn.net/zx13525079024- 已标记为答案 BoberSongModerator 2010年9月24日 7:07
-
你好:
Session.Abandon();
Response.Write("<script>window.location.href='Login.aspx'</script>");
很简单,就是把Response.Redirect改为Response.Write,输出脚本,实现跳转。http://www.codesky.net/article/doc/201004/2010041706492.htm
http://blog.csdn.net/lhypang2006/archive/2008/03/11/2170751.aspx或者设置页面不缓存,当退出后再浏览页面时则无法显示。
希望对你有所帮助。
- 已标记为答案 BoberSongModerator 2010年9月24日 7:07
-
你好:
Session.Abandon();
Response.Write("<script>window.location.href='Login.aspx'</script>");
很简单,就是把Response.Redirect改为Response.Write,输出脚本,实现跳转。http://www.codesky.net/article/doc/201004/2010041706492.htm
http://blog.csdn.net/lhypang2006/archive/2008/03/11/2170751.aspx或者设置页面不缓存,当退出后再浏览页面时则无法显示。
希望对你有所帮助。
这种方法我试过了,还是不行,点历史记录可以回到系统。现在我在main.aspx.的page_load里写 if(Session["userid"]==null) response.write("<script>window.location.href='login.aspx';<script>'");不管用,好像先执行的tree所在页面的load事件,而那时已经报错了。