473,672 Members | 2,615 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"
stateConnection String="tcpip=1 27.0.0.1:42424" sqlConnectionSt ring="data
source=127.0.0. 1;Trusted_Conne ction=yes" cookieless="fal se" 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 1501
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..an d 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*******@hein tze.comwrote in message
news:uk******** *****@TK2MSFTNG P05.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"
stateConnection String="tcpip=1 27.0.0.1:42424" sqlConnectionSt ring="data
source=127.0.0. 1;Trusted_Conne ction=yes" cookieless="fal se" 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
3174
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 take them back to the main page when this happens? Scott
4
15461
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 | Properties | Configuration | Options | Enable Session State Session timeout 20 (3) within Global.asax.vb file - Session_Start subroutine can use Session.Timeout=x minutes or (4) within any web page, i.e., <web page>.aspx can use...
2
1655
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 problem. But the server is closing the connection and terminating the request after 90 sec (the default timeout). I don't want to change the page timeout for the whole application - MS best practices discourages it because resources are used until...
1
3587
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 the login page. OK., Im aware that we have 2 timeouts. Session timeout and forms authentication timeout. In login i do this
2
2355
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 like to set the timeout to infiinity. How can I do this? Thanks, Siegfried <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
4
9436
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 the forms authentication to be a large value for that page also. TIA - Jeff.
2
2240
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) - 1180) +"; URL=index.aspx"); Once the initial page is loaded, i start pressing "F5" to refresh the page.
2
3348
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 open the first page and then log to the second page and so forth.. Don't session timeout value get reset each time we go to another page ? I have noticed that if i go to the initial page and keep pressing F5
11
2471
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 the page doesn't get displatyed, and this goes on continuously. The main sympton is that the select box thats being populated gets a different number of rows loaded into it each time. And the last row that gets loaded is always truncated. Its...
0
8486
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8828
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8608
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8680
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7446
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6238
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.