2010-01-24, 08:27 AM
(This post was last modified: 2010-01-24, 08:29 AM by mrpatrickg.)
you could do this in php with sessions and/or cookies
at the top of each page, put something like
you could easily set the counter to a minutes value with the date function. So after 5 minutes the user will be prompted on next page load
at the top of each page, put something like
<?
//Start Session
session_start();
//Define how many views to limit to
$_SESSION[counterlimit] = 5;
//If the counter hasnt been set, set it
if(!isset($_SESSION[counter])){$_SESSION[counter] = 0;}
//Each time the page loads, increase counter by 1
$_SESSION[counter]++;
//If the counter equals the limit, redirect to signup page
if($_SESSION[counter] == $_SESSION[counterlimit]){header("Location register.php");}
?>
you could easily set the counter to a minutes value with the date function. So after 5 minutes the user will be prompted on next page load