注销登录的方法

退出登录的方法
private void Page_Load(object sender, System.EventArgs e)
{

// 在此处放置用户代码以初始化页面
if (Request.Cookies["Simplex.FullName"!= null
{
this.Session["CurrentUser"= null;
System.Web.Security.FormsAuthentication.SignOut();
this.Response.Redirect("Default.aspx");
}

}

posted on 2005-03-12 23:32  黎宇  阅读(548)  评论(0编辑  收藏  举报

导航