Click to See Complete Forum and Search --> : session variables


vbnov
July 24th, 2006, 02:12 PM
Guys

I am using a lot of session variables. But it seems like the values gets lost. How can I fix it. Is it just enough to set the session timeout in the web config file or do I have to code anywhere else?

Thanks!

mmetzger
July 24th, 2006, 02:19 PM
It has largely to do with garbage collection and memory availability. There are some tweaks you can do to this but I've always found it to be rather unreliable. Basically, the simpler the object you store, the less you'll need per session. Storing a dataset in session is typically not a good idea while storing a memberID won't be much of a problem.