note 114637 deleted from function.setcookie by levim

From: Date: Tue, 18 Mar 2014 02:41:42 +0000
Subject: note 114637 deleted from function.setcookie by levim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-198935@lists.php.net to get a copy of this message
Note Submitter: zweibieren at yahoo dot com ---- time()-3600 is a poor way to compute an out-of-date time. If my server is on the east coast and the recipient is on the west coast, the cookie will not expire for two hours. I recommend time()-24*3600

« previous php.notes (#198935) next »