473,657 Members | 2,434 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timed redirect of web page

I have a problem which I would think would be a common one. If the user
attempts to enter an ASP app in a screen which is not the logon (could get
it from history), I want to be able to do the following:

1. Find out if the user has logged in (completed)
2. Redirect to page indicating the problem (completed)
3. Once the page has displayed for 10 seconds redirect the user to the
logon screen. (the problem).

Lloyd
Nov 18 '05 #1
2 3248
Add a META Refresh tag to the <head> seciton of the page, as in the
following example:

<META HTTP-EQUIV="refresh" content="10;URL =http://www.yoursite.co m/">

The first element of the "content" attribute is the delay interval in
seconds. The second is the URL to redirect to.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Lloyd Sheen" <sq************ *******@tostops pamhotmail.com> wrote in message
news:SC******** ************@ne ws04.bloor.is.n et.cable.rogers .com...
I have a problem which I would think would be a common one. If the user
attempts to enter an ASP app in a screen which is not the logon (could get
it from history), I want to be able to do the following:

1. Find out if the user has logged in (completed)
2. Redirect to page indicating the problem (completed)
3. Once the page has displayed for 10 seconds redirect the user to the
logon screen. (the problem).

Lloyd

Nov 18 '05 #2
Works great thanks.

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:u5******** ******@TK2MSFTN GP10.phx.gbl...
Add a META Refresh tag to the <head> seciton of the page, as in the
following example:

<META HTTP-EQUIV="refresh" content="10;URL =http://www.yoursite.co m/">

The first element of the "content" attribute is the delay interval in
seconds. The second is the URL to redirect to.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Lloyd Sheen" <sq************ *******@tostops pamhotmail.com> wrote in message news:SC******** ************@ne ws04.bloor.is.n et.cable.rogers .com...
I have a problem which I would think would be a common one. If the user
attempts to enter an ASP app in a screen which is not the logon (could get it from history), I want to be able to do the following:

1. Find out if the user has logged in (completed)
2. Redirect to page indicating the problem (completed)
3. Once the page has displayed for 10 seconds redirect the user to the
logon screen. (the problem).

Lloyd


Nov 18 '05 #3

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

Similar topics

2
3917
by: Andy | last post by:
Hi Gang Is there any way with ASP that I can tell if a user session has timed out? The problem is that we have a database app where a user session may time out. After this happens the user may try to save the data that is on there screen (without knowing they've timed out). I think what happens then (after the save) is that we get zero's in some of the fields in the database because the session has timed out.
3
10827
by: FN | last post by:
I know how to do an HTML content redirection (e.g. in 5 seconds you'll be redirec to...) but... I have a javascript countdown timer. It goes for a few hours. At the end, I want to dispaly "times up", wait 10 more seconds, and then redirect to another page. Is there a javascript way to do this, and would it work going back to IE4 and NN4.5?
0
1579
by: Matt | last post by:
(can't find any of my previous post for same issue. please CC to my email address as well. Thanks!) Hi all, What is the possible reason that HttpWebRequest.GetRequestStream() may hang there until a timeout exception. Here is the stack trace and code snippet. Please do help. --Matt // stack trace System.Net.HttpWebRequest.GetRequestStream() +190
2
7856
by: William F. Robertson, Jr. | last post by:
Some of my users are receiving an error: Server Error in '/' Application. ---------------------------------------------------------------------------- ---- Request timed out. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
0
3821
by: Jack Wright | last post by:
Dear All, I have a web Application "http://localhost/Web/WebForm1.aspx" that calls a WebService from "http://localhost/webserviceapp/service1.asmx"...I have set the executionTimeout to 10 secs in Web.Config where my WebService is installed. <httpRuntime executionTimeout="10" appRequestQueueLimit="2" /> When I call a method "TestPlan" which takes more than 10 secs my web Page gets the following error:
4
2928
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading 'http://mydomain.com:port/webservice.asmx' The operation has timed-out (I've tried with and without using a separate port for the service) The weird thing is the page does show up on the left side of the screen listing the available methods but the Add...
0
1509
by: Alex Papadimoulis | last post by:
Hey Group, I'm in the process of converting an ASP-based site to an ASP.NET site and built a control that wraps around an ASP page. The control simply does a GET to the same server to render the ASP content, and then just writes it to the page. In development and testing, there were no problems. Once deployed to production, after the site runs for a few hours, it starts to slow down and throw countless "Operation Has Timed Out"...
0
2032
by: Alex Papadimoulis | last post by:
Hey Group, I'm in the process of converting an ASP-based site to an ASP.NET site and built a control that wraps around an ASP page. The control simply does a GET to the same server to render the ASP content, and then just writes it to the page. In development and testing, there were no problems. Once deployed to production, after the site runs for a few hours, it starts to slow down and throw countless "Operation Has Timed Out"...
10
19142
by: Jim Underwood | last post by:
I am having a problem with my web page timng out while retrieving a long runnign report (90-120 seconds. I have tried modifying several settings in various places and cannot get it to run for more than 90 seconds. I am running VS.Net and the app is ASP.Net, written using VB.Net. The app calls an asp.Net web service to retrieve the report. Both the web site and the web service are running locally on my PC. I have tried modifying the...
0
8395
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8310
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7330
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6166
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4155
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.