Sharing $_SESSION varaibles across subdomains using PHP

Posted by scott on Stack Overflow See other posts from Stack Overflow or by scott
Published on 2010-04-29T11:35:45Z Indexed on 2010/04/29 11:37 UTC
Read the original article Hit count: 434

Filed under:
|
|
|

Hi,

I am trying to share the contents of the session variable across two subdomains but for some reason it is not working.

The sessionid is exactly the same on both subdomains but the variables aren't available.

I can achieve this with Cookies and this s working but would rather use the values in the session.

Here is how I setting the domain for the session:

Thanks, Scott

© Stack Overflow or respective owner

Related posts about php

Related posts about session