system.web.security
FormsAuthentication.RedirectFromLoginPage(txtName.Text, False/true) or
FormsAuthentication.SetAuthCookie(txtName.Text, False/true)
FormsAuthentication.RedirectFromLoginPage(txtName.Text, False/true) or
FormsAuthentication.SetAuthCookie(txtName.Text, False/true)
顺便问一下: 怎样在一个新窗口打开页面呢?
写js:window.open()
会重新写sission
Response.Redirect("http://127.0.0.1/logon.aspx",true);
相当于关闭浏览器在打开,session已经失效
Response.Redirect("..\\logon.aspx",true);