From: marek dot j at bia dot pl
Operating system:
PHP version: 5.2.6
PHP Bug Type: Session related
Bug description: session cookie doesn't work across domains while other
cookies do
Description:
------------
I want to use session across base domain and some subdomains.
Cookies set manually work fine, because when I use:
setcookie('test', '123456', 0, '/', '.domain.com');
I get proper value of $_COOKIE['test'] in base domain and across all
subdomains (no matter if set this cookie in base or sub domain).
But when I use:
session_set_cookie_params(0, '/', '.domain.com');
session_start();
$_COOKIE['PHPSESSID'] has different value for base domain and another
value for all subdomains (one value for all subdomains)
I think it's some bug in session_start() function, because setcookie()
works fine and session_get_cookie_params() returns expected results (domain
= '.domain.com').
--
Edit bug report at http://bugs.php.net/?id=45258&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45258&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45258&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45258&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45258&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45258&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45258&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45258&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45258&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45258&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45258&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45258&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45258&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45258&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45258&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45258&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45258&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45258&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45258&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45258&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45258&r=mysqlcfg