Page Timeout

  • Thread starter Thread starter Scott
  • Start date Start date
S

Scott

I have a page that uses a dataset and times-out causing error messages when
the user tries to use the dataset after a timeout. How can I either remove
the timeout or wrap my code in error code to take them back to the main page
when this happens?

Scott
 
You can increase the timeout by overriding the Session
Timeout attribute in Web.Config file.By default the
session timeout is 20mts.

Thanks,
-Shan
 
Hi Scott,

Right now we are assuming that your problem is due to sessions timing out.
I agree this is probably the case.

Zero is not a valid value for the session time out. If you set the value
to zero you will get an error when you try to browse any page in the
project.

You may want to also consider the impact on memory usage if you store lots
of data in session state.

Also, ASP.NET applications automatically restart periodically. Each time it
restarts, all sessions are lost unless you store the sessions
out-of-process. See "Session State" at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconsessionstate.asp.

Please reply if you have more questions on this.

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security.

This posting is provided "AS IS", with no warranties, and confers no rights.


--------------------
 
Back
Top