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

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