473,388 Members | 1,375 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,388 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 3147
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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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.