Solved

Redirect Session time out runtime error to a custom error page

Posted on 2007-04-01
3
303 Views
Last Modified: 2008-03-06
Hi,

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
0
Comment
Question by:shmz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 28

Accepted Solution

by:
iboutchkine earned 500 total points
ID: 18835334
after body tag


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

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

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

if Session.item("KEY") = Nothing then
   Response.Redirect("LoginPage.aspx")
end if
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question