473,511 Members | 16,849 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to set page timeout?

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
Aug 7 '06 #1
1 1498
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
"Siegfried Heintze" <si*******@heintze.comwrote in message
news:uk*************@TK2MSFTNGP05.phx.gbl...
>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

Aug 8 '06 #2

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

Similar topics

3
3158
by: Scott | last post by:
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...
4
15446
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
2
1648
by: Mark Miller | last post by:
I can't seem to find anything about setting the timeout for an individual page. I have a long running post to a page, but the post is done from an applet, so the browser doesn't have a timeout...
1
3579
by: Anders Jacobsen | last post by:
Hey Im devloping an application in asp.net 1.1 SP2. I need to control timeout values for each user. Im having trouble to make it work. When the session timouts out I want to redirect the user to...
2
2337
by: Siegfried Heintze | last post by:
I made the following change to my web.config file (see fragment below) but does not seem to affect the timeout on my web page. I have a huge session state but since I'm the only one using it, I'd...
4
9413
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
2
2235
by: Astrix | last post by:
Hi, I am working on a problem w.r.t session.timeout I have a code to redirect to this new page after 20 seconds. Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout * 60) -...
2
3330
by: Astrix | last post by:
I have been working on session timeout for an application and I got a lot of help from this discussion Board. My Thanks to all of you. For e.g If i have a website which has multiple pages, I...
11
2457
by: PW | last post by:
One of my ASP's was working fine for a long time. Now it has started constantly refreshing itself. Everytime I run it I just get the first part of the page, then it refreshes itself, the rest of...
0
7138
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
7355
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
7423
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...
1
7081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.