Session variable problem

  • Thread starter Thread starter EDom
  • Start date Start date
E

EDom

Hi,
I store dataset for each page in the session and a reference to the session
key is stored in viewstate. But now on which event I should clear the
session variables. Because when the page is closed or I navigate to another
page the session variables still stays as long as even a single page remains
open of that application

Regards,
Vineet
 
Hi Edom,

If i were you I would store Data like that in the Cache and that way it
will be cleared as needed. Keeping track of when you're finished with
the data is your problem really. (Not very helpful I know :P)

However, unless your display hugh amounts of data, which is bad in of
itself, I wouldn't cache the dataset, i'd just get it again from the
database.

Hope that helps,
Jan
 
Back
Top