62,266
社区成员
发帖
与我相关
我的任务
分享
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
if (Session["UserName"] != null)
Session["UserName"] = null;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
if (Session["UserName"] != null)
Session["UserName"] = null;
FormsAuthentication.SignOut();
}