资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

IsAuthenticated问题

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

ok.aspx页  
  if   (!Context.User.Identity.IsAuthenticated)  
  {  
    Response.Redirect("login.aspx");  
  }  
  我还没有给  
  FormsAuthentication.SetAuthCookie(   user,   true   );  
  为什么还通过验证了?  
  --------------------------  
  f。aspx页  
  最后我试了试  
  FormsAuthentication.SignOut();  
  FormsAuthentication.SetAuthCookie(   user,   true   );  
  传给ok.aspx都是通过验证?  
  Context.User.Identity.IsAuthenticated.ToString()都是true  
   
  为什么?  
 

网友回答:

发表者:loveASUS

web.config    
    <authentication   mode="Forms">  
              <forms   name="pp"   path="/"   loginUrl="Login.aspx"   protection="All"   timeout="30"/>  
          </authentication>  
    <authorization>  
                    <deny   users="?"/>  
        </authorization>  
  你的mode是windows


 

 
热门推荐笔记本: 联想笔记本
相关文章:
笔记本相关:
IT技术文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved