Last post Mar 25, 2017 09:23 AM by PatriceSc
Mar 25, 2017 05:28 AM|debasishappy|LINK
when i am updating database, profile are also updated but that session are updated after i logout and then login,how to fix it in asp.net
Mar 25, 2017 09:23 AM|PatriceSc|LINK
This is the expected behavior. Seems you are loading data in session at login time and if you change later directly the source data, the value stored in the session won't be automatically updated for you.
Not sure what is your current design. I would likely expose those information from a class and read/write properties. Reading would check the session and would read the data from the source if not loaded already and writing would write the value to the session
before writing to the source data.
Basically it would turn those session values into a kind of "browser session scoped user data cache" (additionaly if the session ends missing vlaues would be just loaded again).