Hey guys i wanna check session of a logged in user in php dynamically.
I presently use:
$now = time();
if($now < $_SESSION['expire'])
{
//continue session
}
else
{
//exit
}
I would like to implement the same using javascript and dynamically check the variable every 60 secs. Is there a way to do this dynamically?