ASP.Net application timeout
Posted
by ClarkeyBoy
on Stack Overflow
See other posts from Stack Overflow
or by ClarkeyBoy
Published on 2010-05-15T07:42:52Z
Indexed on
2010/05/15
7:44 UTC
Read the original article
Hit count: 495
Hi,
I have an application I have just deployed which, for complicated reasons, stores all the data from the database in a module the first time any data from the specific table is required (i.e. when a customer requests to view a product for the first time, all the product data is stored in the ProductManager class (of which an instance is stored in a shared property of the SiteContent class, making the ProductManager easily accessible from any page).
Now forget that you are probably now glaring at me for using this approach.. I am sure it has its inefficiencies but I have only been studying .Net for a year or so now so I am still learning.
One thing I have noticed is that I can go on the site once, then revisit it 5 minutes later and it will load all the data into the ProductManager class again. It seems this is a .Net application timeout thing - since the session timeout is set to 30 minutes and, when I am logged in on the administration frontend, it logs me out after 5 minutes (ish).
Does anyone have any idea how to change this? Is there any way I can change this in the code without having to contact the hosting company? If not in the code is there any way to change this in the web.config?
Thanks in advance.
Regards,
Richard
© Stack Overflow or respective owner