Logout.aspx
using System;
using System.Data;
using System.IO;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Logout : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
Session.Abandon();
Session.Clear();
Session.RemoveAll();
if (CurrentUser.UserID != null)
{
PetroChina.MDM.Accounts.Business.LoginUserController.GetInstance().Remove(CurrentUser.UserID);
}
FormsAuthentication.SignOut();
Response.Write("<script language='javascript'>window.opener=null;window.open('','_self');window.close();</script>");
}
}
using System;
using System.Data;
using System.IO;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class Logout : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
Session.Abandon();
Session.Clear();
Session.RemoveAll();
if (CurrentUser.UserID != null)
{
PetroChina.MDM.Accounts.Business.LoginUserController.GetInstance().Remove(CurrentUser.UserID);
}
FormsAuthentication.SignOut();
Response.Write("<script language='javascript'>window.opener=null;window.open('','_self');window.close();</script>");
}
}