• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

Redirect Session time out runtime error to a custom error page


Having a vb.net application which hondles error messages using Error.aspx page. When session times out the 'yellow' runtime error is displayed. Session time out is defined within the web.config. I am not sure how to trap the runtime error so when ever session is ecpired then I redirect users to the same Error.aspx page.

Thanks in advance
1 Solution
after body tag

<script language="javascript">
window.setTimeout("alert('you will be logged off in 5sec');",5000);

function reDirect() {
window.location.href = "http://www.google.com";
redirect to another page when page timed out
<title>My Redirect</title>
This page will redirect to <b>http://www.msdn.microsoft.com</b> in 5
<script language="javascript">

function reDirect() {
window.location.href = "http://www.msdn.microsoft.com";
redirect to another pade after session expired

if Session.item("KEY") = Nothing then
end if
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now