473,396 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Avoid Application Timeout

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
Jul 3 '07 #1
10 2642
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

ASHi,
ASHow can I avoid application timeout? Generally a web application
AStime out is
AS20 minutes, however, we can define this timeout in web.config to any
ASnumber
ASof minutes. After giving 500 minutes of time out which is about
ASlittle more
ASthan 8 hours, the page expires in less than 2 hours. I am confused
AShere how
ASto avoid this timeout problem.
ASI just dont want my page to be expired, should work similar to
ASwindows
ASapplication.
ASPossible?
ASRegards,
ASAtul
Jul 3 '07 #2
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.
Jul 3 '07 #3
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.
AAre you sure about that? Non-expiring sessions on a busy site would
Abring it down. The reason long sessions still expire is cos the
Aapplication is inactive so gets torn down regardless of your active
Asessions.
A>
Jul 3 '07 #4
That's still quite high, near as damn it never expiring.

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:a2***************************@msnews.microsof t.com...
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.
AAre you sure about that? Non-expiring sessions on a busy site would
Abring it down. The reason long sessions still expire is cos the
Aapplication is inactive so gets torn down regardless of your active
Asessions.
A>

Jul 3 '07 #5
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?
"Aidy" <ai**@noemail.xxxa.comwrote in message
news:T_******************************@bt.com...
That's still quite high, near as damn it never expiring.

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:a2***************************@msnews.microsof t.com...
>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.
AAre you sure about that? Non-expiring sessions on a busy site would
Abring it down. The reason long sessions still expire is cos the
Aapplication is inactive so gets torn down regardless of your active
Asessions.
A>


Jul 3 '07 #6
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

ASThanks for input!
ASSo what is the timeout precedence? Whether IIS works as per the
ASsettings
ASdefined in the IIS or in web.config? As per my understanding,
ASweb.config's
AStimeout got higher precedence over IIS timeout settings. What do you
ASsay?
AS"Aidy" <ai**@noemail.xxxa.comwrote in message
ASnews:T_******************************@bt.com...
AS>
>That's still quite high, near as damn it never expiring.

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:a2***************************@msnews.microso ft.com...
>>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.
>
AAre you sure about that? Non-expiring sessions on a busy site
would
Abring it down. The reason long sessions still expire is cos the
Aapplication is inactive so gets torn down regardless of your
active
Asessions.
A>

Jul 3 '07 #7
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.

"Atul Shukla" <py*****@gmail.comwrote in message
news:Of**************@TK2MSFTNGP04.phx.gbl...
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


Jul 3 '07 #8
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)

Atul Shukla wrote:
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

Jul 3 '07 #9
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

"bruce barker" <no****@nospam.comwrote in message
news:e1*************@TK2MSFTNGP05.phx.gbl...
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)

Atul Shukla wrote:
>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
Jul 5 '07 #10
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.

"bruce barker" <no****@nospam.comwrote in message
news:e1*************@TK2MSFTNGP05.phx.gbl...
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)

Atul Shukla wrote:
>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
Jul 10 '07 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: deko | last post by:
I have 3 files I need to write to - and need to make sure I have a lock on each, and take action if I can't get a lock. The code below works, but I know it could be more efficient if I used a...
4
by: MrLr | last post by:
Greetings, I have an ASP web application that is written in VBScript, uses MS Access 2000 for record storage, and is running on a Windows 2000 Professional SP4 computer with IIS 5. The...
6
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
2
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
6
by: B B | last post by:
Okay, here is what's happening: I have a reasonably fast laptop (1.4 GHz Mobile M, so comparable to 2.5GHz P4) doing .net development. Running Windows XP pro, SP2 IIS is installed and running...
5
by: Homer J. Simpson | last post by:
Hi, Any idea to get the -REAL- number of active users -WITHOUT- this kind of code ? ---------------------------------------------------------------------------- --------- Sub Session_OnStart...
3
by: Li Pang | last post by:
Hi, I have used ADO.Net to select/update/insert data from/to a MS SQL database. Some time when the database is busy, I received the below error: Timeout expired. The timeout period elapsed...
7
by: Volkan Senguel | last post by:
Hi i'm searching a solution to avoid that the user can go in the standby mode while a app is runing. i have searched and readed a lot in the web and have not found a working solution... for the...
7
by: =?Utf-8?B?SmFzb24=?= | last post by:
Hello, can someone please suggest to me how I can keep my ftp connection from timing out after a large file download? I am using SSIS and I have tried multiple ways of ftp'ing the files in my...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.