.NET退出系统,并清空用户信息(重新输入网址或点击浏览器返回均不会打开)

来源:互联网 发布:mac沙盒软件 编辑:程序博客网 时间:2024/05/04 10:04

方法1:

          Session.RemoveAll();
            
            Response.Write("<script language='javascript'>window.location='Login.aspx'</script>");

方法2:

               Session.Clear();
                ClientScript.RegisterStartupScript(this.GetType(), "", "<script>window.open('Login.aspx','_top','',false);</script>");

方法3:

              Session.Clear();
              ClientScript.RegisterStartupScript(this.GetType(), "", "window.open('Login.aspx','_top','',true);");


0 0