i'm using phplib on three subdomains. say www.foo.com, admin.foo.com and members.foo.com.
when i start start a session on www.foo.com the variable $lang is registered. it's value is 'en'. now when i change from www.foo.com to members.foo.com i can't rely on this registered var cos it's a different domain, which seems clear to me. but is there a chance to hand over the session to the other domain, so that $lang stays 'en' and not defaults to 'de' cos it's not registered anymore?
i tried to call the other domain with http://members.foo.com/index.php?foo_Session=<sess-id> but it didn't work.
any help apreciated...
in session4.inc on line 88 it reads:
* If set, the domain for which the session cookie is set.
* @var string
var $cookie_domain = '';
enter your domain like '.foo.com' and all subdomains of foo.com are covered.
Log in to post a comment.