ID:               43682
 User updated by:  k dot andris at gmail dot com
 Reported By:      k dot andris at gmail dot com
 Status:           Open
 Bug Type:         Session related
 Operating System: Debian Sarge
 PHP Version:      5.2.5
 New Comment:

Works all right in 5.2


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

[2007-12-26 21:00:49] k dot andris at gmail dot com

Description:
------------
The $_SESSION variable is empty when I look at it on a subdomain
(abc.mydomain.com) even though session_id() is the same as on the main
site (mydomain.com). Sessions are saved in files under /var/log/php5 -
they just not read from there. The session cookie is OK too.

Reproduce code:
---------------
I have this on the base domain and on subdoamins too with different
assigment lines. Still, they only seee their own assigments.

ini_set("session.cookie_domain", ".mydomain.net");
session_start();

print_r($_SESSION);
        
$_SESSION['main'] = 'main'; // assigment

print_r($_SESSION);



Expected result:
----------------
Since I have the same session id, I expect the $_SESSION variable to be
shared acreoss pages, and subdomains.



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


-- 
Edit this bug report at http://bugs.php.net/?id=43682&edit=1

Reply via email to