Hi ,
I have created login form in MVC 4 it is using form authentication. Code working fine.
I have one object of class User in which I have 5 properties. I need all values in all over my application. I want to store them all.
I have one object of class User in which I have 5 properties. I need all values in all over my application. I want to store them all.
Can I do it using ASP .Net session object? Can form authentication ticket also do it and how? Also how can I retrieve values from ticket (if I can store in it)?
Thanks in advance
Thanks in advance

Hima BinduRank #4,292 · 353 reputationPosted Jul 17, 2016, 9:41 PM EDT
Do you need it specific to user then create a Session object
If you know that its common forall the users and need it at application level, you can get theseproperties from Application object
kalu singh raoRank #884 · 2.4K reputationPosted Jul 17, 2016, 9:59 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Jul 17, 2016, 10:03 PM EDT
Ansh TakalkarRank #5,602 · 293 reputationPosted Jul 18, 2016, 8:47 PM EDT