469,578 Members | 1,914 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,578 developers. It's quick & easy.

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 11598
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Greg Burns | last post: by
reply views Thread by David Bartosik - MS MVP | last post: by
1 post views Thread by Mukund Patel | last post: by
6 posts views Thread by dee | last post: by
3 posts views Thread by Paul Cheetham | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.