RE: Web.Config Timeout Expired Redirect Custom Error Page



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.
.



Relevant Pages

  • Re: Application Pool timouts.
    ... a) From what i understand, the application pool timeout is the timeout for ... an idle session which is created by a browser. ... is idle for 20 minutes or longer the problems occur. ... Application Pool's w3wp.exe process to be shutdown by IIS when no requests ...
    (microsoft.public.inetserver.iis.security)
  • Re: How do I change the session timeout?
    ... A session will last for as long a period as you set in ... That's set in the forms timeout property. ... You will see that the logged-in period changes to match the number of minutes you specify. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: SQLCommandTimeout
    ... to set the value for the session? ... designer) you can set the Command Timeout value there. ... I am just using the DataSource, configured to use my stored procedure, ... I found out about the SQLCommandTimeout Property that can be used to ...
    (microsoft.public.dotnet.general)
  • RE: Remote webspace logging off.
    ... their session after a certain amount of time. ... Please check the following settings: ... Restart the IIS Service or restart the SBS Server. ... Remote Web Workplace timeout: ...
    (microsoft.public.windows.server.sbs)
  • Re: How do I change the session timeout?
    ... Ok, it might not IIS itself, but ASP.NET, that runs in the IIS environment, that does that. ... Prove that my sample code isn't valid by supplying us with code which proves you're right. ... What you are demonstrating is that the timeout is occuring at one minute ... When the application starts at the same time as the session, as in your test, it doesn't prove ...
    (microsoft.public.dotnet.framework.aspnet)