Bug #66080 [Fbk->Csd]: setcookie isn't setting cookie
| From: | requinix@php.net | Date: | Mon, 25 Nov 2013 21:32:39 +0000 |
| Subject: | Bug #66080 [Fbk->Csd]: setcookie isn't setting cookie | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-182934@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66080&edit=1
ID: 66080
Updated by: requinix@php.net
Reported by: rf14racingfan14 at gmail dot com
Summary: setcookie isn't setting cookie
-Status: Feedback
+Status: Closed
Type: Bug
Package: Apache2 related
Operating System: Windows
PHP Version: 5.5.5
-Assigned To:
+Assigned To: requinix
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2013-11-25 19:54:43] rf14racingfan at gmail dot com
No errors were returned, but upon upgrading to PHP 5.5.6 the problem went away and setcookie() now
works.
------------------------------------------------------------------------
[2013-11-12 02:37:34] requinix@php.net
Find your php.ini and set
error_reporting = -1
display_errors = on
Restart Apache and use phpinfo() to confirm the new values.
Then try your code. Any errors or warnings?
------------------------------------------------------------------------
[2013-11-12 01:56:01] rf14racingfan14 at gmail dot com
Description:
------------
setcookie() will not set a cookie. It worked for me in PHP 5.4.7, but upon upgrading to PHP 5.5.5
the cookie will no longer be set. I tested in Opera 12, Chromium, Chrome and Opera 15.
NOTE: I filed it under Apache2 as I didn't know what to file it under.
Test script:
---------------
<?php
// Example
setcookie("A", "B");
?>
Expected result:
----------------
The cookie should be set.
Actual result:
--------------
The cookie isn't set.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66080&edit=1