1

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

2
  • Not sure how to do that. Im new to this site. Could you please tell me? Commented Jan 29, 2010 at 6:10
  • 1
    You should accept answers when they satisfy your question don't let your questions hang ! Commented Jan 29, 2010 at 6:45

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

1 Comment

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.