Request.IsAuthenticated is always false

前端 未结 10 2174
迷失自我
迷失自我 2020-12-15 04:34

Can you tell me why FormsAuthentication.SetAuthCookie(user.Name, false); is not causing Request.IsAuthenticated to be true?

Here is my code

10条回答
  •  清歌不尽
    2020-12-15 05:11

    I was looking for about 2 hours now to solve the problem. And in case you already got setups like you are told to in several guides (as MSDN and so) and you still got the problem, the one and only thing that will solve it is to add:

    
      
         
         
      
    
    

    within the webconfig.

提交回复
热议问题