note 59603 added to function.setcookie
| From: | no at spam dot com | Date: | Sat, 10 Dec 2005 21:47:02 +0000 |
| Subject: | note 59603 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99922@lists.php.net to get a copy of this message | ||
To workaround the header issue with php/IIS I opened the php.ini file and enabled the following
option.
; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files by
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
output_buffering = On
All cookies work fine now :)
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59603
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59603&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59603&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59603&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59603&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59603&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59603&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59603&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59603&report=yes
Search -- http://master.php.net/manage/user-notes.php