在C#中注销系统 [英] Log out system in C#

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

问题描述

伙计们,



你能告诉我注销系统的代码吗?我已经为登录做了代码,并且我坚持要退出。非常感谢。

解决方案

 受保护  void  lnkbtnlogout_Click( object  sender,EventArgs e)
{
Session.Abandon();
Session.Clear();
Response.Redirect( 〜/ Default.aspx);
}





否则请检入 Google [ ^


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");
   }



else check in Google[^]


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

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