在C#中注销系统 [英] Log out system in C#
本文介绍了在C#中注销系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
伙计们,
你能告诉我注销系统的代码吗?我已经为登录做了代码,并且我坚持要退出。非常感谢。
解决方案
受保护 void lnkbtnlogout_Click( object sender,EventArgs e)
{
Session.Abandon();
Session.Clear();
Response.Redirect( 〜/ Default.aspx);
}
guys,
Can you please give me the codes for a logout system. I already made the codes for the login, and im stuck for logging out. It'll be much appreciated.
解决方案
protected void lnkbtnlogout_Click(object sender, EventArgs e) { Session.Abandon(); Session.Clear(); Response.Redirect("~/Default.aspx"); }
这篇关于在C#中注销系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文