473,672 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3174
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*******@disc ussions.microso ft.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/cpconsessionsta te.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.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: 169.207.144.125
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!cpm sftngxa09.phx.g bl!TK2MSFTNGP08 .
phx.gbl!TK2MSFT NGP10.phx.gbl Xref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2014 45
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

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

"Shan" <an*******@disc ussions.microso ft.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
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
1
1501
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" />
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
8931
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
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
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...
2
2063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
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.