Last post Sep 04, 2014 02:41 PM by MetalAsp.Net
Sep 04, 2014 02:32 PM|dsowmya|LINK
What fields does a session object not store ? Or does it exclude any fields in case of storage overflow, if yes what are the preferences on which it does so. I've read in some post that Session object excludes transient fields, Can someone explain transient
I have a case where I noticed this behaviour. I am storing the User Object in a session like so.
Object CurrentUser = ODal.GetUserDetails();
CurrentUser.Role = OReportDal.FindUserRole(CurrentUser);
Session["CurrentUser"] = CurrentUser;
the next time i access the 'CurrentUser' object, it has all other fields intact except the 'Role' field. The Role field becomes null. Is 'Role' a transient field ?
Sep 04, 2014 02:41 PM|MetalAsp.Net|LINK
Can you show the method signature of GetUserDetails()?