Re: [PHP] Re: Same sessions / different domains

2005-05-30 Thread Marek Kilimajer
mbneto wrote: Hi Richard, The setcookie manual and the cookie specification tells otherwise. bool setcookie ( string name [, string value [, int expire [, string path [, string domain [, bool secure] ) the domain parameter is restricted to third level domains (or 4 for top level domains

Re: [PHP] Re: Same sessions / different domains

2005-05-14 Thread Richard Lynch
On Sat, May 14, 2005 4:45 am, mbneto said: > They are in the same machine. My major concern is with security and > the hability to make sure if a user logs in, or adds something to a > "shopping cart" in one domain it will be available to the other > domain. > > Can I set call setCookie twice with

Re: [PHP] Re: Same sessions / different domains

2005-05-14 Thread Marek Kilimajer
Richard Lynch wrote: On Fri, May 13, 2005 1:06 am, Marek Kilimajer said: Richard Lynch wrote: On Thu, May 12, 2005 6:58 am, Shaun said: $_SERVER['HTTP_HOST'] "Mbneto" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I need to access a website (written in php) using two different do

Re: [PHP] Re: Same sessions / different domains

2005-05-14 Thread mbneto
Hi, They are in the same machine. My major concern is with security and the hability to make sure if a user logs in, or adds something to a "shopping cart" in one domain it will be available to the other domain. Can I set call setCookie twice with the same variable name but different domain ? I

Re: [PHP] Re: Same sessions / different domains

2005-05-14 Thread Richard Lynch
On Fri, May 13, 2005 1:06 am, Marek Kilimajer said: > Richard Lynch wrote: >> On Thu, May 12, 2005 6:58 am, Shaun said: >> >>>$_SERVER['HTTP_HOST'] >>> >>>"Mbneto" <[EMAIL PROTECTED]> wrote in message >>>news:[EMAIL PROTECTED] >>>Hi, >>> >>>I need to access a website (written in php) using two

Re: [PHP] Re: Same sessions / different domains

2005-05-13 Thread Marek Kilimajer
Richard Lynch wrote: On Thu, May 12, 2005 6:58 am, Shaun said: $_SERVER['HTTP_HOST'] "Mbneto" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I need to access a website (written in php) using two different domains (www.foo.com and www.bar.com). I must see the same content. Since the

Re: [PHP] Re: Same sessions / different domains

2005-05-12 Thread Richard Lynch
On Thu, May 12, 2005 6:58 am, Shaun said: > $_SERVER['HTTP_HOST'] > > "Mbneto" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Hi, > > I need to access a website (written in php) using two different > domains (www.foo.com and www.bar.com). I must see the same content. > > Since the