/// <summary> /// 退出登录 /// </summary> public void LoginOut() { Session.Abandon(); if (Request.Cookies["loginId"] != null && Request.Cookies["pwd"] != null && Request.Cookies["id"] != null) { Response.Cookies["id"].Expires = DateTime.Now.AddYears(-10); Response.Cookies["loginId"].Expires = DateTime.Now.AddYears(-10); Response.Cookies["pwd"].Expires = DateTime.Now.AddYears(-10); } Response.Write("<script> top.location.href='Login.aspx'; </script>"); }
版权声明:本文为博主原创文章,未经博主允许不得转载。