note 17639 deleted from function.setcookie by jimw

From: Date: Fri, 21 Dec 2001 00:37:04 +0000
Subject: note 17639 deleted from function.setcookie by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23651@lists.php.net to get a copy of this message
If IE 5x is deleting your cookies (only keeping them for the session), use this simple code: $date=time()+7200; $name="visitor"; $value="whatever"; SetCookie($name,$value,$date); The real breakthrough is the time() variable. Please ignore the above comments. You do not need quotes or GMT formatting or times > 7200. This is simple and it works.

« previous php.notes (#23651) next »