#48630 [Opn->Fbk]: cookie not set if $domain is given as input

From: Date: Thu, 09 Jul 2009 20:54:47 +0000
Subject: #48630 [Opn->Fbk]: cookie not set if $domain is given as input
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-139555@lists.php.net to get a copy of this message
ID: 48630 Updated by: jani@php.net Reported By: sigurdne at online dot no -Status: Open +Status: Feedback Bug Type: Session related Operating System: ubuntu 9.04 PHP Version: 5.3CVS-2009-06-21 (snap) -Assigned To: +Assigned To: fb-req-jani New Comment: Please provide a proper reproducing script we can test with anywhere. One that starts with <?php and ends with ?> :) Previous Comments: ------------------------------------------------------------------------ [2009-07-01 19:23:47] sigurdne at online dot no Found out: It fails if the SERVER_PORT (the "listen" setting in httpd.conf) is anything but 80. Applies to all versions from 5.2.6 to 5.3.0 (those are the versions I have tested) ------------------------------------------------------------------------ [2009-06-25 12:41:12] jani@php.net Does it work with PHP 5.2.10 ? ------------------------------------------------------------------------ [2009-06-21 20:01:05] sigurdne at online dot no Description: ------------ The cookie is not set if $domain is set in either of session_set_cookie_params() and setcookie(). Reproduce code: --------------- Fail: session_set_cookie_params(0, $path, $domain, $secure,true); Work: session_set_cookie_params(0, $path, false, $secure,true); the same with setcookie(): Fail: setcookie($cookiename, $cookievalue, $cookietime,$path, $domain, $secure, true); Work setcookie($cookiename, $cookievalue, $cookietime,$path, false, $secure, true); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48630&edit=1

« previous php.bugs (#139555) next »