This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > December 2005 > How do you set the time on a redirect page? ASP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How do you set the time on a redirect page? ASP
GTN1707

2005-12-29, 6:31 pm

Hi there,

I've built a couple of registration pages, using a session variable to carry
the user id from the first to the second, on completion of the second the user
is redirected to a page that thanks them for registering and informs them that
they will be contacted within 72 hours. This page also has the code below,
which drops the session variable and then redirects them to the index. What i
would like to do is set a time of about 5 seconds before the second redirect,
therefore giving the user time to read the Thank you message, Any ideas?

thank you

// *** Logout the current user.
var MM_logoutRedirectPage = "index.asp";
Session.Contents.Remove("MM_client");
if (MM_logoutRedirectPage != "") Response.Redirect(MM_logoutRedirectPage);

GTN1707

2005-12-30, 6:22 pm

Thanks Gerry, just one thing, as i will be redirecting to a page within the site, can i use -
<meta http-equiv="refresh" content="2;index.asp">
Thanks
bubba11

2005-12-30, 6:29 pm

Yes, that's how I have to deal with a redirection issue. After the ASP runs I have this line:

<meta http-equiv="Refresh" content="3;URL=loggedOut.asp">

Works perfectly.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews