<authentication mode="Forms">
<forms name="LandTransAuth" loginUrl="Default.aspx" protection="All" timeout="60" path="/" >
</forms>
</authentication>我跟踪了一下,发现调用顺序正常
FormsAuthentication.SetAuthCookie(login.UserID.ToString(), chkRememberLogin.Checked);
->
FormsAuthentication.SignOut();
->
if ( Request.IsAuthenticated )
->
但不知为什么,最后一句总是true,除非把浏览器关了重打开
(我上面几句分别放在不同的aspx里面,应该不影响吧,)
<forms name="LandTransAuth" loginUrl="Default.aspx" protection="All" timeout="60" path="/" >
</forms>
</authentication>我跟踪了一下,发现调用顺序正常
FormsAuthentication.SetAuthCookie(login.UserID.ToString(), chkRememberLogin.Checked);
->
FormsAuthentication.SignOut();
->
if ( Request.IsAuthenticated )
->
但不知为什么,最后一句总是true,除非把浏览器关了重打开
(我上面几句分别放在不同的aspx里面,应该不影响吧,)
解决方案 »
- 谁有下列列表树控件?
- Response.Write("<script >window.open('detial.aspx?id='+ a);</script>")
- .net inherits参数问题!
- 请教个正则表达式的问题
- 请各位高手指点(一个ASP.NET问题)
- 如何读取/写入数据库里的图片字段
- 数组问题
- 怎么用js引用服务器端HTML控件?
- 为什么找不到System.Web.UI.Design这个命名空间啊!在帮助里有啊!但不能引用啊!
- 用Window.open 的方法打开窗口,怎样能使窗口不可见呢?
- 能不能通过datagrid或者其他的控件显示嵌套的表格??
- 请问循环中使用deaufultview问题?
FormsAuthentication.SignOut();之后好像就不能对其他cookie进行操作,要紧跟redirect语句,我调换了顺序就搞定了,谢谢各位