注销浏览器中的后退按钮时出现问题 [英] Logout Issue when clicking back button in browser

查看:95
本文介绍了注销浏览器中的后退按钮时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手,我正在使用c#在asp.NET中创建网页。在该页面中,在用户注销后,他们仍然可以使用BACK按钮并且能够只读信息。我无法弄清楚如何摆脱这个后退按钮问题。我希望我的wenpage表现出与Yahoo!相同的行为。邮件exibits:退出后,您无法返回(即使使用浏览器中的后退按钮),也无需重新登录。任何帮助都将非常受欢迎!谢谢!

解决方案

请查看以下链接:

asp.net中的注销问题 [ ^ ]

back-button-issue-after-logout-in-asp.net [ ^ ]

返回-button-problem-after-logout-in-asp-net [ ^ ]

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


试试这个:



在您的主页上添加此内容,其中包含loh out。



 Response.Buffer = true; 
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
Response.Expires = -1500;
Response.CacheControl =no-cache;
Response.Cache.SetNoStore();







这可能会对你有所帮助,如果没有,请发布。


当您注销会话清除时,您可以在会话中执行此操作


I am new to this and I''m creating web page in asp.NET with c#. In that page, after user logs out, they are still able to use the BACK button and are able to read-only the information. I cannot figure out how to get rid of this Back button issue. I want my wenpage to exhibit the same behavior that Yahoo! Mail exibits: after you sign out, you are not able to go back (even by using the Back button in the browser), without signing back in. Any help would be REALLY appreciated!!! Thanks!

解决方案

Please have a look at following links:
logout problem in asp.net[^]
back-button-issue-after-logout-in-asp.net[^]
back-button-problem-after-logout-in-asp-net[^]
http://forums.asp.net/t/1752337.aspx/1[^]


Try This :

Add this on your Home page on which loh out is thre.

Response.Buffer = true;
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);
Response.Expires = -1500;
Response.CacheControl = "no-cache";
Response.Cache.SetNoStore();




this may help you, if not then please post it.


you can do it by the session when you log out make session cleare


这篇关于注销浏览器中的后退按钮时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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