COUNTDOWN - GIVEN in MIN...
Posted: Fri Sep 09, 2005 8:35 am
Hi,
I read a lot of posts as COUNTDOWN - 25 at all found on my search here. But no ones seems to completly cover a simple question:
1. If the PROGRAMMER needs to have that COUNT on every single page and it s not using an IFRAME or else.
2. When the user get LOGGED IN it´s code records the 'future min to come' into COOKIE and the parse this cookie like:
When the time has come 00 MIN 00 SEC - I´ll recall an action and UNSET all SESSIONS and COOKIES used and DO LOGOUT to that specific user. I round and round the internet and developed a code but I´m getting in trouble subtracting min by the seconds. I tried to MIX javascript with PHP but I did not find any suitable manner for that.
Can anyone here comment my problem with any TIP or CLUE?
Thanks in advance for all of you.
Bye,
Poeta_Eletrico
I read a lot of posts as COUNTDOWN - 25 at all found on my search here. But no ones seems to completly cover a simple question:
1. If the PROGRAMMER needs to have that COUNT on every single page and it s not using an IFRAME or else.
2. When the user get LOGGED IN it´s code records the 'future min to come' into COOKIE and the parse this cookie like:
Displayed METHOD IS: XX min YY sec (used in every page).
$expiredate=mktime(date('H'),date('i')+30,0,date('m'),date('d'),date('Y'));
setcookie("living", $expiredate, $expiredate);
$future=split(':',strftime('%T',$_COOKIE['living']));
$now=split(':',strftime('%T',time()));
When the time has come 00 MIN 00 SEC - I´ll recall an action and UNSET all SESSIONS and COOKIES used and DO LOGOUT to that specific user. I round and round the internet and developed a code but I´m getting in trouble subtracting min by the seconds. I tried to MIX javascript with PHP but I did not find any suitable manner for that.
Can anyone here comment my problem with any TIP or CLUE?
Thanks in advance for all of you.
Bye,
Poeta_Eletrico