note 44752 deleted from function.setcookie by tularis

From: Date: Sun, 02 Jan 2005 14:14:26 +0000
Subject: note 44752 deleted from function.setcookie by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82574@lists.php.net to get a copy of this message
Note Submitter: mr-yellow at mr-yellow dot com ---- Sorry Secure not Secure=1.... Instead of setcookie it would be much safer to use the new better specs and send the following. A 1 hour cookie is as follows: header('Set-Cookie: TestCookie=something+from+somewhere; Max-Age=3600; Domain=.www.domain.com; Path=/; secure;'); To Delete a cookie set -1: header('Set-Cookie: TestCookie=something+from+somewhere; Max-Age=-1; Domain=.www.domain.com; Path=/; secure;'); -Ben

« previous php.notes (#82574) next »