Authorize attribute not working MVC 5

Total Post:10

Points:70
Mvc 
 627  View(s)
Ratings:
Rate this:

I have use MVC default [Authorize] attribute but it is not working in my project.

When I try to login the application it is not login the application and it is not redirecting to the specific page

  1. Post:9

    Points:63
    Re: Authorize attribute not working MVC 5

    You need to check following code in web.config

    <authentication mode="Forms">
    
     <forms loginUrl="~/Account/Login" timeout="2880" />
    </authentication>


Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!