protected void Page_Load(object sender, EventArgs e) { //Session.Abandon();//取消当前会话 //Session.Clear();//清除当前浏览器进程所有session Session.Remove("sessionUserName");//删除Session集合中某个元素 Session.Remove("sessionGLBM"); //Session["userId"]=null; //设置Session集合中的某个元素为空. this.Response.Redirect("../public/Login.aspx"); }