note 66846 added to function.setcookie

From: Date: Wed, 31 May 2006 00:37:06 +0000
Subject: note 66846 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-112577@lists.php.net to get a copy of this message
Hi guys, just want to share a problem I had that was driving me crazy.. My cookies were setting correctly on a top level document, but if I set them inside of another file that was used include() they wouldnt work.. turned out the included file had a whitespace before the first <? php tag at the top. Check all included files for ANY output to the browser before your set_cookie() command! ---- Server IP: 64.71.164.2 Probable Submitter: 67.90.95.166 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/note/edit/66846 Del: integrated -- http://master.php.net/note/delete/66846/integrated Del: useless -- http://master.php.net/note/delete/66846/useless Del: bad code -- http://master.php.net/note/delete/66846/bad+code Del: spam -- http://master.php.net/note/delete/66846/spam Del: non-english -- http://master.php.net/note/delete/66846/non-english Del: in docs -- http://master.php.net/note/delete/66846/in+docs Del: other reasons-- http://master.php.net/note/delete/66846 Reject -- http://master.php.net/note/reject/66846 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#112577) next »