Session variable problem

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
 
J

Jan Bannister (jancsharp.blogspot.com)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top