473,473 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Custum error site in asp.net

Hi

...need some advice: I like to create a redirect to my custom error page if the user sessions timeout happens. For this purpose I can use for example <error statusCode="404" redirect="404.aspx" />
My question is: Which is the error code of a session timeout?

Thanks..
Ashley
Nov 18 '05 #1
2 1181
Jon
Ashley,
session timout doesn't generate an error - you would add code to Session_End
in your global.asax file, eg

Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the session ends - put your code here
End Sub

Jon

"Ashley" <an*******@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Hi,

..need some advice: I like to create a redirect to my custom error page if the user sessions timeout happens. For this purpose I can use for example
<error statusCode="404" redirect="404.aspx" />. My question is: Which is the error code of a session timeout??

Thanks...
Ashley

Nov 18 '05 #2
Ashley,
There is no HTTP status code specifically designated for Session Timeout.
However, you would definately want to use something in the 400 range since
this is a client side error.

I would probably use 408, which is designated for "Request Timeout". Some
gateway devices use the 400 (Bad Request) to denote a Session Timeout, but I
prefer 408.

David Young

"Ashley" <an*******@discussions.microsoft.com> wrote in message
news:C2**********************************@microsof t.com...
Hi,

..need some advice: I like to create a redirect to my custom error page if the user sessions timeout happens. For this purpose I can use for example
<error statusCode="404" redirect="404.aspx" />. My question is: Which is the error code of a session timeout??

Thanks...
Ashley

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Leonard Danao | last post by:
I get this error when i run my code below "An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The remote server returned an error: (401)...
7
by: Abdul-Wahid Paterson | last post by:
Hi, I have had a site working for the last 2 years and have had no problems until at the weekend I replace my database server with a newer one. The database migration went like a dream and I had...
7
by: Leon Shaw | last post by:
Someone please help me understand the following error message: Server Error in '/solo' Application. ---------------------------------------------------------------------------- ---- ...
3
by: Karl Jensen | last post by:
Hello gurus, I would like to build a text box like date field in the following format :dd-mm-yy. My thougts are that this should be possible with a web custum control or by inheriting from a text...
8
by: Jef Driesen | last post by:
I'm working on an image segmentation algorithm. An essential part of the algorithm is a graph to keep track of the connectivity between regions. At the moment I have a working implementation, but...
0
by: EJO | last post by:
Thanks everyone! My workgroup is in a mixed enviroment for using an Access 2k mde as the front end of a sql server 2000 which is running on the same machine that some of my users access using...
3
by: =?Utf-8?B?RWRC?= | last post by:
I am having a real problem with this. I am much more a Windows guy then a Web guy, so that doesn't help. I have an ASP app I developed in VS2003/VB. I then converted it to VS2005. It works...
3
by: =?Utf-8?B?SGVyYg==?= | last post by:
I've developed an ASP.NET website that runs fine on my local WinXP IIS and on my server's IIS, both are IIS6.0 The site uses a master page that has the following declaration: <%@ Master...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.