473,397 Members | 2,056 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,397 software developers and data experts.

Page Timeout

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
Nov 18 '05 #1
3 3150
You can increase the timeout by overriding the Session
Timeout attribute in Web.Config file.By default the
session timeout is 20mts.

Thanks,
-Shan

-----Original Message-----
I have a page that uses a dataset and times-out causing error messages whenthe user tries to use the dataset after a timeout. How can I either removethe timeout or wrap my code in error code to take them back to the main pagewhen this happens?

Scott
.

Nov 18 '05 #2
Thanks... If I change this value to "0" does that mean it will never time
out?

"Shan" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
You can increase the timeout by overriding the Session
Timeout attribute in Web.Config file.By default the
session timeout is 20mts.

Thanks,
-Shan

-----Original Message-----
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
.

Nov 18 '05 #3
Hi Scott,

Right now we are assuming that your problem is due to sessions timing out.
I agree this is probably the case.

Zero is not a valid value for the session time out. If you set the value
to zero you will get an error when you try to browse any page in the
project.

You may want to also consider the impact on memory usage if you store lots
of data in session state.

Also, ASP.NET applications automatically restart periodically. Each time it
restarts, all sessions are lost unless you store the sessions
out-of-process. See "Session State" at
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconsessionstate.asp.

Please reply if you have more questions on this.

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security.

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
From: "Scott" <sc***********@nospam.ma-hc.com>
References: <eF**************@TK2MSFTNGP11.phx.gbl> <01****************************@phx.gbl> Subject: Re: Page Timeout
Date: Mon, 12 Jan 2004 10:20:46 -0600
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Message-ID: <#H**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 169.207.144.125
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP10.phx.gbl Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:201445
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Thanks... If I change this value to "0" does that mean it will never time
out?

"Shan" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
You can increase the timeout by overriding the Session
Timeout attribute in Web.Config file.By default the
session timeout is 20mts.

Thanks,
-Shan

-----Original Message-----
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
.



Nov 18 '05 #4

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

Similar topics

4
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
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
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...
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...
2
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
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
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
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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
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...
0
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,...
0
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...

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.