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

[email protected] ("sigurdne at online dot no")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               48630
 User updated by:  sigurdne at online dot no
 Reported By:      sigurdne at online dot no
-Status:           Feedback
+Status:           Open
 Bug Type:         Session related
 Operating System: ubuntu 9.04
 PHP Version:      5.3CVS-2009-06-21 (snap)
 New Comment:

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)


Previous Comments:
------------------------------------------------------------------------

[2009-06-29 20:42:12] [email protected]

Please give feedback when you have some. I assume it works with 5.2.6 
then. And I can assure you it works fine for me in all latest versions.

------------------------------------------------------------------------

[2009-06-26 21:07:15] sigurdne at online dot no

I will test it as soon as I can - probably a week from now. My "stable"
is currently at 5.2.6

------------------------------------------------------------------------

[2009-06-25 12:41:12] [email protected]

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.