How to control session timeout in WebConfig?

G

Guest

Hi -

I'm trying to control the error that is thrown when the session times out.
My code is as follows:

<customErrors
mode="RemoteOnly">
<error
redirect="includes/reload.aspx?iOP=1"
statusCode="Timeout" />
</customErrors>

Any ideas why this isn't working?

Thanks,
 
T

Tom.PesterDELETETHISSS

The method you use is for redirecting HTTP statuscodes like 404 not found
or 500 internal error.
There isn't such a thing as a Timeout status code. Check out http://msdn.microsoft.com/library/d...us/cpgenref/html/gngrfcustomerrorssection.asp


Cracefully detecting a session timout can be done by placing some code at
the start of each page. Check out this discussion if it meets your needs :

http://groups-beta.google.com/group...sion+expiration&rnum=1&hl=en#5232a6604c9605fb

Let me know it helped you or not..

Cheers,
Tom Pester
 
G

Guest

Thanks Tom,

This helps some, and i was not clear in my previous example in using just
the work "Timeout". What i'm trying to find is the IIS generated StatusCode
for Session State timeout? I cannot seem to find this number anywhere, and i
don't want to use the general 500 statuscode error.

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top