Hi,
How can I avoid application timeout? Generally a web application time out is
20 minutes, however, we can define this timeout in web.config to any number
of minutes. After giving 500 minutes of time out which is about little more
than 8 hours, the page expires in less than 2 hours. I am confused here how
to avoid this timeout problem.
I just dont want my page to be expired, should work similar to windows
application.
Possible?
Regards,
Atul
Michael Nemtsev - 03 Jul 2007 08:32 GMT
Hello Atul,
Set the "0" and the session never timeout.
But this perhaps leads you to the problem with your resources.
Each session takes certain amount of system resources and free then when
timeout, and in your case resources never be releases back
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
AS> Hi,
AS> How can I avoid application timeout? Generally a web application
AS> time out is
AS> 20 minutes, however, we can define this timeout in web.config to any
AS> number
AS> of minutes. After giving 500 minutes of time out which is about
AS> little more
AS> than 8 hours, the page expires in less than 2 hours. I am confused
AS> here how
AS> to avoid this timeout problem.
AS> I just dont want my page to be expired, should work similar to
AS> windows
AS> application.
AS> Possible?
AS> Regards,
AS> Atu
Aidy - 03 Jul 2007 09:06 GMT
> Set the "0" and the session never timeout.
Are you sure about that? Non-expiring sessions on a busy site would bring
it down. The reason long sessions still expire is cos the application is
inactive so gets torn down regardless of your active sessions.
Michael Nemtsev - 03 Jul 2007 10:12 GMT
Hello Aidy,
Yep, kinda wrong :( Sorry.
Seems that there is no way to have the non-timeout session.
in .NET 2.0 the limited the session by 525,601 minutes (1 year)
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
>> Set the "0" and the session never timeout.
A> Are you sure about that? Non-expiring sessions on a busy site would
A> bring it down. The reason long sessions still expire is cos the
A> application is inactive so gets torn down regardless of your active
A> sessions.
A>
Aidy - 03 Jul 2007 10:21 GMT
That's still quite high, near as damn it never expiring.
> Hello Aidy,
>
[quoted text clipped - 18 lines]
> A> sessions.
> A>
Atul Shukla - 03 Jul 2007 12:57 GMT
Thanks for input!
So what is the timeout precedence? Whether IIS works as per the settings
defined in the IIS or in web.config? As per my understanding, web.config's
timeout got higher precedence over IIS timeout settings. What do you say?
> That's still quite high, near as damn it never expiring.
>
[quoted text clipped - 20 lines]
>> A> sessions.
>> A>
Michael Nemtsev - 03 Jul 2007 13:43 GMT
Hello Atul,
IIS just translate your web.config in GUI representation.
---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
AS> Thanks for input!
AS> So what is the timeout precedence? Whether IIS works as per the
AS> settings
AS> defined in the IIS or in web.config? As per my understanding,
AS> web.config's
AS> timeout got higher precedence over IIS timeout settings. What do you
AS> say?
AS> "Aidy" <aidy@noemail.xxxa.com> wrote in message
AS> news:T_mdnWjUjtOhiBfbnZ2dnUVZ8qaqnZ2d@bt.com...
AS>
>> That's still quite high, near as damn it never expiring.
>>
[quoted text clipped - 22 lines]
>>> A> sessions.
>>> A>
George Ter-Saakov - 03 Jul 2007 15:56 GMT
Take a look at my article on codeproject "Make session last forever"
http://www.codeproject.com/useritems/SessionForever.asp
Hope it's going to help.
George.
> Hi,
> How can I avoid application timeout? Generally a web application time out
[quoted text clipped - 9 lines]
> Regards,
> Atul
bruce barker - 03 Jul 2007 16:16 GMT
there are two timeouts. session timeout and application timeout. if
asp.net is not used for its timeout period, then its shutdown. ou an
bump this up, but recycles ca still happen (say too many inproc sessions).
if you want your page to not timeout, switch to sqlserver session, and
set the session timeout to a couple days (or as long as you want). then
your users will never see lost sessions from recycles. you can even make
the session cookie persistent so that it lasts weeks (handy for a
shopping cart application)
-- bruce (sqlwork.com)
> Hi,
> How can I avoid application timeout? Generally a web application time out is
[quoted text clipped - 9 lines]
> Regards,
> Atul
Atul Shukla - 05 Jul 2007 10:23 GMT
Hi Bruce,
Thanks!
Storing session values in SQL is good idea. I was thinking to avoid using
Session variables in the application. So will store minimum information in
cookies (encrypted form). I am in doubt, thinking that even though if I dont
use Session Variables, would application/browser session expire?
Regards,
Atul
> there are two timeouts. session timeout and application timeout. if
> asp.net is not used for its timeout period, then its shutdown. ou an bump
[quoted text clipped - 21 lines]
>> Regards,
>> Atul
Atul Shukla - 10 Jul 2007 01:01 GMT
Actually I want to keep the session active for more than 8 hours. So what I
did is that changed the IIS Enable Session Timeout setting to 500 minutes,
also disabled all the checkboxes given in the Recycle Tab for an application
pool. Another check box is on Performance tab named as 'idle timeout', I
disabled it too (though not recommended and planning to put 510 minutes if
idle for more than timeout to release the resources). And it has solved my
problem for the time being.
> there are two timeouts. session timeout and application timeout. if
> asp.net is not used for its timeout period, then its shutdown. ou an bump
[quoted text clipped - 21 lines]
>> Regards,
>> Atul