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
Ansh TakalkarPosted Jul 19, 2016, 12:47 AM
Vinay SinghPosted Jul 18, 2016, 2:03 AM
kalu singh raoPosted Jul 18, 2016, 1:59 AM
Hima BinduPosted Jul 18, 2016, 1:41 AM
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