|
Posted on
2009-11-20 10:59
王景
阅读( 334)
评论()
编辑
收藏
举报
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif) 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>"); } }
|