|
Re: Maintaining state information across applications and pageloads
My advice would be to use caching.
Typically I don't use session variables ad what I do is request the user data from the database each time. However if the data has already been requested the method would load it from cache rather than the database.
e.g.
Friend Function LoadMember(MemberId) as MemberObject
Dim obj as Object = Cache("Member" & MemberId.ToString)
End fucntion
|