Click here to Skip to main content
15,891,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can we use Session variables like asp.net in MVC?

What I have tried:

How to store values in using session management in MVC
Posted
Updated 21-Aug-18 4:12am
Comments
F-ES Sitecore 21-Aug-18 6:03am    
Yes you can use Session variables in MVC, you use them in the same way you do asp.net. If you are having problems then give more detail about what you're doing.
Nelek 21-Aug-18 8:27am    
This is a valid answer for this question. You should publish it below, to get it our of the unanswered list

1 solution

Short answer, yes.

With the exception of the actual win-form controls, just about everything from win-forms is utilizable in ASP.NET MVC out of the box.

Things do change up a little bit when you get to ASP.NET Core MVC, you need to add in Memory Caching, Distributed Memory Cache, and AspNetCore.Session
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900