Reputation: 18411
We have a site in classic ASP.
We are in the process of converting pieces of this site MVC4. There are areas that require authentication.
There is an authentication process in the main site.
How can i check in the MVC4 areas if the user is authenticated in the main site?
Upvotes: 0
Views: 115
Reputation: 2785
how do you store in the classic asp part that the user is authenticated?
when stored in a Cookie than just check the Cookie.
checking a classic asp session variable from asp.net is possible but not as easys as to check a Client side Cookie...
Upvotes: 1
Reputation: 4278
You can put an authentication attribute over either your controller or a specific action method for a user of a specific role.
Upvotes: 0