Last post Jan 03, 2011 10:03 PM by SGWellens
Jan 03, 2011 08:22 PM|bgreer5050|LINK
I use a couple of session variables in my asp.net application to keep track of a couple of objects. I make changes to the objects occasionally and I am wondering if a safe rule of thumb is to save my objects to the session variables on the Page Unload event.
I just trying to get a grasp of when/where I should take of my session variables. I am looking for a general rule to follow or best practices rule.
For example, I may have a list of dates that I keep in a List (Of Date) and I may add or remove dates from the list in my code behind. When the page posts back, I want to make sure I have the most recent list saved to the session variable.
Thanks for any suggestions.
Jan 03, 2011 10:03 PM|SGWellens|LINK
>> When should I update my session variables?
When ever they change.