I have:
$_SESSION['CREATED'] = time();
in php.
I'm trying to 'inject' it to jquery:
var sesstime = <?php echo json_encode($_SESSION['CREATED']) ?>;
Now i want to current date:
var timestampjq = (new Date()).getTime();
And how to format these dates ?
I want to use:
if(timestampjq - sesstime > 60) {
}
Thanks