Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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>

Thanks,

 

Bill Yeager (MCP, BCIP)

Microsoft Certified Professional

Brainbench Certified Internet Professional, .Net Programmer, Computer Programmer

YeagerTech Consulting, Inc.

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

A man and a dog have an average of three legs.

Beaware of Statistics.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...