473,793 Members | 2,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timeout on web page is too short, changing web.config seems to have no affect

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"
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"
/>
Aug 9 '06 #1
2 2365
Is it the timeout on the page that is the issue, or timeout on your
connection and/or command objects? In general, timeout problems are database
timeouts and not page timeouts. If that is the case, you should look at the
database objects or, preferably, tune the database.

If this is truly session timeout, you have to leave the machine on all the
time and never turn it off. In addition, you have to ensure the worker
process never reboots (which can be dangerous).

What is the reason for permanent session? You are storing things in session?
Okay, make an object and check it on each page hit. If null (session timeoed
out), rebuild it. Easy solution that only builds the object when necessary
and does not require eternal session state.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think Outside the Box!
*************** *************** *************** ****
"Siegfried Heintze" <si*******@hein tze.comwrote in message
news:e6******** ******@TK2MSFTN GP06.phx.gbl...
>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"
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"
/>


Aug 10 '06 #2
You can also use the StateService to store the session state in that
way when the worker process is reset your data in session will not be
affected.

1Start the State Service from Control Panel -Services ->
StateService
2Changes the web.config to:

<sessionState mode="StateServ er"
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"
/>

msnews.microsof t.com wrote:
Is it the timeout on the page that is the issue, or timeout on your
connection and/or command objects? In general, timeout problems are database
timeouts and not page timeouts. If that is the case, you should look at the
database objects or, preferably, tune the database.

If this is truly session timeout, you have to leave the machine on all the
time and never turn it off. In addition, you have to ensure the worker
process never reboots (which can be dangerous).

What is the reason for permanent session? You are storing things in session?
Okay, make an object and check it on each page hit. If null (session timeoed
out), rebuild it. Easy solution that only builds the object when necessary
and does not require eternal session state.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think Outside the Box!
*************** *************** *************** ****
"Siegfried Heintze" <si*******@hein tze.comwrote in message
news:e6******** ******@TK2MSFTN GP06.phx.gbl...
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"
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"
/>
Aug 10 '06 #3

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

Similar topics

8
21115
by: P. Glassel | last post by:
I'm having problems getting session timeouts to change programmaticlaly under IIS6.0. This is unchanged code that ran as expected under IIS5.0. Anyone else run into this problem? Thx.
8
1790
by: Shalini | last post by:
If I have an ASPX page that is just sleeping for 3 minutes ormore and later does some processing and the ExecutionTimeout parameter in the machine.config is 90 seconds then the page does not timeout after 90 seconds. Even if the ExecutionTimeout parameter in the web.config is set or the Server.ScriptTimeout is set in the aspx.cs still the page does not timeout after the timeout period. Can someone please tell us as to how we can timeout an...
8
5499
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how all applications will use sessions and to insure that all application use this method, the session properties cannot be overriden. Within the sessionstate tags, the webadmin (upon my request)r emoved the property for timeout, hoping that...
0
932
by: Dee | last post by:
Hi I have a \secure folder in my application that has its own web.config When i change the timeout in the application's web.config it doesnt affect timeout of that page. And when i add timeout to the inner web.config I get and error. How can this be done? Thanks Dee
10
6875
by: greenb | last post by:
Our asp.net web app uses a .NET component (DLL) in the bin directory to call several stored procedures back to back to perform updates. They don't return any data. Sometimes the total execution time can take 2-3 minutes, but even though I have set the executionTimeout in web.config to a high number of seconds (2400), the request will still time out after 90 seconds. The user sees a Request timed out error. The app logs a ThreadAborted...
3
2092
by: Adam Short | last post by:
I have a webservice which takes a hostname and drive letter as input and returns the free space for that drive on that host as a long. Sometimes it will take forever to get information from a recalcitrant host, but it keeps trying far longer than I want it to. How can I set up a timeout for the process, so that after a couple of seconds it returns a failure status and gives up waiting? Currently, the method maps the drive, finds its...
6
4904
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
1
1505
by: Siegfried Heintze | last post by:
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" />
1
352
by: Annie | last post by:
hi guys, I was just wondering if we can override the session timeout for some of the pages in a web application as defined in the web config? let is say i have a group of pages A, b, c, d that are only related to each other and I don't want their session to be expired in 20 min as set in config file. is session.timeout sometihng that can help?
0
9671
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
10433
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10212
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
10161
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
10000
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
5436
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...
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.