Re: session cookie and domains

From: Date: Thu, 04 May 2006 13:21:50 +0000
Subject: Re: session cookie and domains
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-235507@lists.php.net to get a copy of this message
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@dotcomholdingsofbuffalo.com

« previous php.general (#235507) next »