网站注销的编码 [英] Coading of logout for a website
本文介绍了网站注销的编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是网站登出的代码?
解决方案
点击登出按钮,添加以下代码:
FormsAuthentication.SignOut(); 会话[" ].Abandon(); Response.Redirect(" );
只需将会话设置为null(如果您正在使用或在任何要维护值的地方).并将其写在注销按钮上.
FormsAuthentication.SignOut();
希望对您有帮助.
如果有帮助,请不要忘记将其标记为答案. :)
查看此链接
针对网站的退出编码 [ ^ ]
What is the coading of LogOut of a website?
解决方案
on click of logout button, add the following code:
FormsAuthentication.SignOut(); Session["Name"].Abandon(); Response.Redirect("Login.aspx");
just set session to null if you are using or where ever you are maintaining values. and write this on logout button.
FormsAuthentication.SignOut();
hope this will help you.
Don''t forget to mark as answer if it helps. :)
Look this link
Coading of sign out for a website[^]
这篇关于网站注销的编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文