note 42319 rejected from function.setcookie by tix

From: Date: Wed, 12 May 2004 06:21:52 +0000
Subject: note 42319 rejected from function.setcookie by tix
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69504@lists.php.net to get a copy of this message
Note Submitter: z_malloc_overflow@hotmail.com ---- At some point during a version change this.. setcookie("PHPSESSID","","/","yourdomain.com"); became unacceptable and would result in this warning : Warning: setcookie() expects parameter 3 to be long, string given in /var/www/yourscript.php on line 2 To set a 'per session' based cookie with no expiration, use zero. You must typecast in this loosely typed language in this case. setcookie("PHPSESSID",0,"/","yourdomain.com");

« previous php.notes (#69504) next »