dalecosp;10978768 wrote:Cookie is a possibility ... set to expire in plus one minute. Also, text file might not be a bad idea. Create a writable directory, maybe in /tmp, and check for the existence of a file, say, "1.2.3.4.txt". If it exists, check [man]filemtime/man and then decide to show the page, or not.
Well, I would like to allow a few refreshes per minute, not necessarilly restricted by a set timeframe.. so.. 5 refreshes in 5 seconds is ok, as long as the 6th doesnt hit within 60 seconds...
but if they refresh every 12 seconds, would i need 5 text files per person?... 5 session variables?
$_SESSION[$x]['IP']['time'] = time(); $x++;
if there are more than 5 $_SESSION[$x] for each IP then check time of oldest, if greater than 60 seconds then destroy it, if less than 60 seconds logout user and redirect ?