Click here to Skip to main content
15,922,166 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am creating a web application in MVC4. I like to maintain a user details in all the page. When the user login, I want to store the all user details in a class. And want to use the stored details in all the pages. Is there any Design patter there for this. I tried the Singleton, But Its changing when second user login. Is there any other Design patter or any way I can maintain the user details without Session.
Posted

1 solution

Use Identity to do this, there is no point in re-inventing the wheel. You'll need to store the fact the user is authenticated in a cookie.
 
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