Re: [PHP] session cookie and domains

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 7:37 am, Merlin wrote: > 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 mak

Re: [PHP] session cookie and domains

2006-05-04 Thread John Nichel
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 s

RE: [PHP] session cookie and domains

2006-05-04 Thread Jay Blanchard
[snip] That makes is available for all subdomains. Is there a possiblity to make it available for all domains like example: .domainname. [/snip] Are you trying to share a cookie across domain names? If so that cannot be done. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis