Maintain login in global.asax page
Using Global.asax to Check if User is Logged in When Each Page is Requested
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Guest UserRank #258 · 9.8K pointsPosted Jul 10, 2014, 3:21 AM EDT
# 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]
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
sudheer kumar13 pointsPosted Jul 10, 2014, 3:25 AM EDT