View Full Version : How do you time a login response page ?

01-07-2011, 02:56 PM
If you log in here, you end with a page saying 'thanks for logging in'. Then after about three seconds you are automatically transferred to the main forum page. How is the time delay between the transfer created ?
Thanks -
Songboy ?

01-07-2011, 05:10 PM
My guess is that it's a meta refresh.

01-07-2011, 09:36 PM
Well I got something like this from the php site:
header( "refresh:3;url=indexa.php" );
and installed the code on my page. It works fine.
The problem is that in looking around I found lots of things like this:
'The W3C discourage the creation of auto-refreshing pages, since most web browsers do not allow the user to disable or control the refresh rate.'
Does this mean that 'in real life' this code won't work ? If not, what are the alternatives ?
Thanks -

01-08-2011, 12:02 AM
java script can redirect after a given time period , that should keep every body happier i think

01-09-2011, 09:56 PM
I've changed the code above to this:

<script type="text/JavaScript">
function move()
window.location = "indexa.php";
setTimeout("move()", 3000);

It works as well.

Thanks to domedia and edbr for pointers.