wsyeager Posted January 28, 2005 Posted January 28, 2005 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> Quote Thanks, Bill Yeager (MCP, BCIP) Microsoft Certified Professional Brainbench Certified Internet Professional, .Net Programmer, Computer Programmer YeagerTech Consulting, Inc.
hrabia Posted January 31, 2005 Posted January 31, 2005 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). Quote A man and a dog have an average of three legs. Beaware of Statistics.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.