tags:

views:

39

answers:

1

Hi

I am working on migrating the existing ASP.NET application to MVC. Earlier we used to maintain the user sessions and can be accessed in whatever page we want.

Ex: Session["UserType"] = var_UserMastersBO.UserType.ToString();

We set this session Global.asax file.

In case if there are restricted pages based on the userType, we check this if condition in the page load.

Cal we implement the same in MVC?

Appreciate your responses. Thanks

+4  A: 

ASP.NET MVC is built on top of the ASP.NET so you can use every feature of ASP.NET like Session Membership Caching in MVC.

ali62b
Yeah, as ali says, all this stuff is the same. You can use the global.asax in the same way too.
UpTheCreek