有人可以告诉我如何注销吗?
问题描述:
当管理员进入网站时,我已经进行了会话管理员.我还添加了一个按钮以注销.有人可以告诉我应该注销吗?
i have made session admin when the admin enters the website. i have also added a button to log out. can anybody plz tell me wht should be done to log out ???
答
您可以在codeproject网站上找到解决方案:
注销后浏览器后退按钮问题 [
You can find the solution on codeproject website itself:
Browser back button issue after logout[^]
尝试一下
注销时
Session ["sessionname"] =";
Try this
At logout
Session["sessionname"]= "";
基本上logout
建议您不再使用网站.
单击注销将用户重定向到登录页面并使用Session.Abandon()
清除先前用户使用的会话.
basicallylogout
suggest you are no more work with website.
on click of logout redirect user to login page and useSession.Abandon()
to clear session used by previous user.