Giannis Paraskevopoulos
Giannis Paraskevopoulos

Reputation: 18411

mvc 4 hosted in classic asp authentication

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

Answers (2)

ulluoink
ulluoink

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

BenM
BenM

Reputation: 4278

You can put an authentication attribute over either your controller or a specific action method for a user of a specific role.

See Tutorial about it here

Upvotes: 0

Related Questions