set-cookie expiration in seconds
问题 Does the html header Set-Cookie function accept expiration in seconds? header( "Set-Cookie:". $cookieName."=".$sessId."; expires=".$expireSeconds."; sessionID=".$sessId.";path=".$path."; domain=".$domain."; httponly; secure); $expireSeconds = time()+$expireSeconds; NOTE: I dont want to use set cookie because i am running php4 version. Also php4 does not support httponly in the setcookie() function 回答1: The proper date format for expires is something like this: Mon, 19 Nov 2012 15:40:59 GMT