asp.net中的注销页面? [英] logout page in asp.net?
本文介绍了asp.net中的注销页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何注销一个asp.net..i在asp.net中创建了一个登录页面,登录数据正在通过seesion方法传递,特定页面被打开。现在我想注销页面。
how to logout a asp.net..i was created a login page in asp.net and the login data are passing through a seesion method and the particular page was opened .now i wanted to logout the page permentaly..
推荐答案
参考 - 如何使用会话注销ASP.NET应用程序 - 放弃,清除或删除 [ ^ ]。
如果您遇到浏览器后退按钮问题,请浏览浏览器返回注销后按钮问题 [ ^ ]。
Refer - How to logout in an ASP.NET application with session – abandon, clear or remove[^].
If you face issues with Browser Back Button, then go through Browser back button issue after logout[^].
只需调用一个ASPX页面即可logout.aspx或其他花哨名称
只写两行代码
Simply make one ASPX page called logout.aspx or another fancy name
in that write only two lines of code
Session.Abandon(); // It will destroy your session
Response.Redirect(".."); //It will redirect you to Root of your website
这篇关于asp.net中的注销页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文