Re: session cookie and domains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Merlin wrote:
Hi there,

I am operating 3 sites where I would like to be able to login cross site. Means with one login have a valid session on all 3 domain.

Currently I do set the cookie like this:
setcookie($cookiename,$sessid,0,'/','.'.$domain[name],0); That makes is available for all subdomains. Is there a possiblity to make it available for all domains like example: .domainname.

Thank you for any hint,

Merlin


If you mean sharing the cookie between domain1.com, domain2.com, domain3.com, then no

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel@xxxxxxxxxxxxxxxxxxxxxxxxxxx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux