How to set page timeout?

  • Thread starter Siegfried Heintze
  • Start date
S

Siegfried Heintze

I have a page with a huge session state but extremely low traffic. The
default timeout period that is normally sufficient is not. I thougth I was
changing the timeout period with the following change to the web.config
file.

<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="2000"
/>


Unfortunately, this seems to have no affect (effect?). Is there a way to
make the timeout infinite so it no longer becomes necessary to page forward
or backward thru my large paged table just to reset the timeout timer?

Thanks,
Siegfried
 
K

Kumar Reddi

if I remember correctly.. the session timeout setting apply for the entire
application. and also remember.. long session timeout is not a very good
idea.. you wonder why?
Lets say user A opens the browser and navigates to this page.. and huge data
gets loaded into the session.. now the user closes the browser..
accidentaly..and opens a new browser window.. and now a new copy of the huge
session data gets loaded again.. this could happen several times or from
several users.. So, potentially multiples of this huge session data is
residing in the memory for 2000 minutes.. which is almost 35 hours.. Imagine
how bad this is for your server's RAM...

my suggesion would be.. try page output caching.. if that scenario is
applicable for you
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top