#43682 [Opn-Fbk]: session id kept, content lost on subdomain

2008-02-01 Thread jani
 ID:   43682
 Updated by:   [EMAIL PROTECTED]
 Reported By:  k dot andris at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Debian Sarge
 PHP Version:  5.2.4
 New Comment:

Sounds like a lighttpd problem to me. I only use lighttpd but I don't
have any wildcard dns names set. Perhaps lighttpd doesn't set the host
properly that is passed to PHP (or actually any other fastcgi..)



Previous Comments:


[2008-02-01 19:47:05] k dot andris at gmail dot com

Now I'm closer to see what's causing this... It only happens with a
vhost serving a wildcard subdomain. When all *.mysite.net requests go to
a single /var/www/index.php file. When I serve subdomains from
/var/www/subdomain/ it works ok. I'm using lighttpd with fastcgi. I'l
try to see if the problem is with lighttpd or php, but if you can test
it with Apache... Thanks.



[2008-01-26 01:04:07] [EMAIL PROTECTED]

If you're not using the sources we provide, then we can't help you. But
if you can reproduce this using fresh sources from http://php.net/ then
we can talk more.. I have NO problems with sessions in subdomains.



[2008-01-18 13:15:54] k dot andris at gmail dot com

Thanks, I'll try it. 5.2.4 works OK, too. My 5.2.5 was from dotdeb and
not the official sources.



[2008-01-18 01:31:13] [EMAIL PROTECTED]

I'd check first that the cookie is actually set and with what data.
I had some problems with this when I changed the domain to be something
different what it originally was, and as there already existed a cookie
with same name, but just set with domain 'www.example.com' it wasn't
reset. (tested using Firefox)

Try change the session name (ie. cookie name) too.




[2007-12-27 00:27:18] k dot andris at gmail dot com

Works all right in 5.2



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/43682

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


#43682 [Opn-Fbk]: session id kept, content lost on subdomain

2008-01-25 Thread jani
 ID:   43682
 Updated by:   [EMAIL PROTECTED]
 Reported By:  k dot andris at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Debian Sarge
 PHP Version:  5.2.5
 New Comment:

If you're not using the sources we provide, then we can't help you. But
if you can reproduce this using fresh sources from http://php.net/ then
we can talk more.. I have NO problems with sessions in subdomains.


Previous Comments:


[2008-01-18 13:15:54] k dot andris at gmail dot com

Thanks, I'll try it. 5.2.4 works OK, too. My 5.2.5 was from dotdeb and
not the official sources.



[2008-01-18 01:31:13] [EMAIL PROTECTED]

I'd check first that the cookie is actually set and with what data.
I had some problems with this when I changed the domain to be something
different what it originally was, and as there already existed a cookie
with same name, but just set with domain 'www.example.com' it wasn't
reset. (tested using Firefox)

Try change the session name (ie. cookie name) too.




[2007-12-27 00:27:18] k dot andris at gmail dot com

Works all right in 5.2



[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=43682edit=1


#43682 [Opn-Fbk]: session id kept, content lost on subdomain

2008-01-17 Thread jani
 ID:   43682
 Updated by:   [EMAIL PROTECTED]
 Reported By:  k dot andris at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: Debian Sarge
 PHP Version:  5.2.5
 New Comment:

I'd check first that the cookie is actually set and with what data.
I had some problems with this when I changed the domain to be something
different what it originally was, and as there already existed a cookie
with same name, but just set with domain 'www.example.com' it wasn't
reset. (tested using Firefox)

Try change the session name (ie. cookie name) too.



Previous Comments:


[2007-12-27 00:27:18] k dot andris at gmail dot com

Works all right in 5.2



[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=43682edit=1