473,385 Members | 1,707 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,385 software developers and data experts.

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"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="2000"
/>
Aug 9 '06 #1
2 2326
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*******@heintze.comwrote in message
news:e6**************@TK2MSFTNGP06.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"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="false" 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="StateServer"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data

source=127.0.0.1;Trusted_Connection=yes" cookieless="false"
timeout="2000"
/>

msnews.microsoft.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*******@heintze.comwrote in message
news:e6**************@TK2MSFTNGP06.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"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="2000"
/>
Aug 10 '06 #3

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

Similar topics

8
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
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...
8
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...
0
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...
10
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...
3
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...
6
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...
1
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...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.