473,503 Members | 6,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web.Config Timeout Expired Redirect Custom Error Page

Hi,

I have searched the net and still no luck...

I just want to automatically have a page redirected to another page when the
timeout set in the config file expires.

I currently have:

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>

and want my ASP.Net app to automatically detect that the timeout has expired
and redirect to another page.

Can anyone help?

Thanks in advance.
Nov 22 '05 #1
2 11844
The ASP.NET session timeout is a passive not an active action. When a
session times out, the session information is removed from the web server
memory. Upon a new web request to the web application the code can determine
if the session has timed out and then redirect to another page. If you are
looking to have the browser automatically redirect the user to another page
without the user causing a form post to occur then you'll need to write some
javascript (look up the setTimeout function)

--
Jorge L. Matos

"Grant" wrote:
Hi,

I have searched the net and still no luck...

I just want to automatically have a page redirected to another page when the
timeout set in the config file expires.

I currently have:

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>

and want my ASP.Net app to automatically detect that the timeout has expired
and redirect to another page.

Can anyone help?

Thanks in advance.

Nov 22 '05 #2
The ASP.NET session timeout is a passive not an active action. When a
session times out, the session information is removed from the web server
memory. Upon a new web request to the web application the code can determine
if the session has timed out and then redirect to another page. If you are
looking to have the browser automatically redirect the user to another page
without the user causing a form post to occur then you'll need to write some
javascript (look up the setTimeout function)

--
Jorge L. Matos

"Grant" wrote:
Hi,

I have searched the net and still no luck...

I just want to automatically have a page redirected to another page when the
timeout set in the config file expires.

I currently have:

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>

and want my ASP.Net app to automatically detect that the timeout has expired
and redirect to another page.

Can anyone help?

Thanks in advance.

Nov 22 '05 #3

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

Similar topics

1
598
by: Grant | last post by:
Hi, I have searched the net and still no luck... I just want to automatically have a page redirected to another page when the timeout set in the config file expires. I currently have: ...
1
2042
by: apngss | last post by:
I want to know how to redirect 404 error to custom error page? For example, if test.html doesn't exist and the user type http://www.myserver.com/test.html, it will show my custom error page,...
1
5894
by: Greg Burns | last post by:
I am trying to write a global custom error page. I thought I would jot down some of what I've learned so far... At first I just used the default customErrors section with a defaultRedirect tag,...
0
1095
by: David Bartosik - MS MVP | last post by:
I have a web service consumer in asp.net with the web config file set with a custom error page and the remote only setting. Most the time if an error occurs the custom error page is displayed. ...
2
1351
by: Jorge Matos | last post by:
I think the answer is no, but I wanted to ask to be sure. Is it possible to handle an exception in Page_Error or Application_Error and not redirect to a custom error page? In other words I want...
1
1795
by: Mukund Patel | last post by:
Hi friends, I have implemented custom error handling at page level and application level. If there is any syntax error in my aspx class file it will redirect to error page when I run the page....
6
2293
by: dee | last post by:
Hi In web.config I have to the following: <configuration> <system.web> <customErrors defaultRedirect="error.htm" mode="On" /> </system.web> </configuration>
0
1199
by: Dan Kraiman | last post by:
I am using version 1.1 of the .NET framework on IIS 6/Windows 2003. 1. Is there a way to force all ASP.NET applications to have secure cookies (ie send them using SSL), without modifying the...
3
2007
by: Paul Cheetham | last post by:
Hi, I have created a custom error page for my web application (c#, .Net 2) In this page I am trying to get the details of the error that has occurred so that I can display it if required. ...
4
4413
by: =?Utf-8?B?QWxm?= | last post by:
Hello all, I am having trouble dealing with ~(tilde) in my .Net 1.1 web application, specially when it comes through the URL. For example, when someone requests the following URL:...
0
7194
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
7070
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
7267
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
7316
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...
0
7449
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
5566
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,...
1
4993
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...
0
4666
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...
0
3160
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...

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.