I am trying to set a cookie using the code below.
$ads = "some value here";
$time = mktime()+3600;
$date = date("l, d-M-Y H:i:s", ($time));
header ("Set-Cookie: title=$ads; expires=$date GMT; path=/;");
I generated the EXPIRES= part of the code using mktime().
My problem is that the cookie is not being set unless I add at least 9 hours to mktime(). I want to be able to set a cookie that'll expire in say 2 hrs.
Is this a problem with Windows platform, or is it the same on other platforms?
Thanks.
Richard.