.net中的安全退出及不能后退回去的代码

时间:2015/12/3 16:53:00来源:互联网 作者:flyso 点击: 804 次
//安全退出按钮的单击事件

protected void Button1_Click(object sender, EventArgs e)  

{  

    Session.Abandon();   //取消当前会话

    Session.Clear();    //清除当前浏览器进程所有session

    Response.Write("<script>window.top.opener=null;window.top.location='../EquimentManage/Login.aspx';</script>");

  }

     


    Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3