custom errors...

wsyeager

Centurion
Joined
Apr 10, 2003
Messages
140
Location
Weston, FL
Could someone please tell me what the status code is for a session timeout?

I want to redirect the user to a specific page informing them that their session has timed out and they need to log back in again.

I want to set up a custom error in the web.config file based on this error, but I don't know what the error code is.

Something like:
<customErrors mode="RemoteOnly" defaultRedirect="/error.html">
<error statusCode="403" redirect="/accessdenied.html" />
<error statusCode="404" redirect="/pagenotfound.html" />
</customErrors>
 
AFAIK there is no such error code. You have to do it on your own way. To make it fully automaticaly I've build a small client java script, which redirect user to my "session time out" page whithout need of user's postback (it's pretty uncool when someone receives info, that the session timed out, during submitting of a form).
 
Back
Top