注销后的问题 [英] problem after logout

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

问题描述

我用登录页面和其他几个页面创建了网站.
当我单击超链接进入登录"页面时,我已使用超链接"进行注销单击.
但是问题是,当我单击后退箭头/按钮时,它会重定向到上一页.
如何避免这些问题.

i have created website with login page and other several pages.
I have used Hyperlink for Logout click when i click on hyperlink it goes to Login page.
But problem is that when i click back arrow/button it redirect to previous page.
How to avoid these problem.

推荐答案

您需要使用Session.Abandon().
看一个例子..
http://www.developerscode.com/2011/02/how- to-create-logout-page-using.html [ ^ ]
You need to use Session.Abandon().
See an example..
http://www.developerscode.com/2011/02/how-to-create-logout-page-using.html[^]


注销时,请确保放弃所有用于登录的会话值.
When your logging out be sure to abandon all the session values stored for log in.


页面加载事件检查会话是否为空或会话是否为空(如果条件为空)重定向到登录页面
on page load event check the session is empty or not in if condition if the session is empty redirect to login page


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

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