G
Guest
We have numerous pages that store datasets in Session. Sometimes these are
used for one page, sometimes for a few (ex. - search page looks up your info,
edit person page edits that info)
What i'd like is a way to get rid of these session variables when we no
longer need them. We originally trie putting cleanup code in Unload but then
realized unload gets called after every page hit, including postbacks, so it
wipes out data the active page is still using. That's not good
So not unload. Is there an event that tells me when the user is leaving this
page/URL for a different one? Then i could manually write the unload then
Alternately, is there a better way to do this?
My original idea was to use a FSM/workflow manager and have that control the
lifecycle of the session variables but we're near the end of the project and
don't really have time to implement that
Thanks
-baylor
used for one page, sometimes for a few (ex. - search page looks up your info,
edit person page edits that info)
What i'd like is a way to get rid of these session variables when we no
longer need them. We originally trie putting cleanup code in Unload but then
realized unload gets called after every page hit, including postbacks, so it
wipes out data the active page is still using. That's not good
So not unload. Is there an event that tells me when the user is leaving this
page/URL for a different one? Then i could manually write the unload then
Alternately, is there a better way to do this?
My original idea was to use a FSM/workflow manager and have that control the
lifecycle of the session variables but we're near the end of the project and
don't really have time to implement that
Thanks
-baylor