Maintain login in global.asax page
Using Global.asax to Check if User is Logged in When Each Page is Requested
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
sudheer kumarPosted Jul 10, 2014, 7:25 AM
Guest UserPosted Jul 10, 2014, 7:21 AM
# If it's MVC/Web API then you can create [Authorize] filter which you can include two ways:
- Explicitly over any method of Controller, e.g.,
[Authorize]
public class ValueController
{
.....
}
and you can create Authorize filter and put over each controller class
- The second way is to make this Authorize filter default for all controllers, which you can do by overriding the default one
Hope this helps.
twitter @sumitjolly