OK, So this is an odd one!
When a user logs in, a two cookies are set, one with the date and one with the time they logged in.
I then want to run a script that will check to see if the date = today (done)
If its today but has been 10 or more minutes since the cookie was updated, update it.
I hope that makes sense!
So far I have
$min = date('i');
$newMin = $min+10;
if ($_COOKIE['logint'] <= date('H:').$newMin.date(':s')) {
But I have also tried
if($_COOKIE['logint'] <= time()+(0*0*10*0) {
Neither of which seem to work :S
Anyone know where im going wrong?
TIA