Re: [PHP] Cookies on WinXP

2003-07-31 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Steve Buehler <[EMAIL PROTECTED]> wrote: > > Something else I found out now. I think it was Cpt John W. Holmes > > (not sure though) that said I couldn't have a cookie as an array > > like this the following. So i am not sure if it is somethin

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Chris Shiflett
--- Steve Buehler <[EMAIL PROTECTED]> wrote: > Something else I found out now. I think it was Cpt John W. Holmes > (not sure though) that said I couldn't have a cookie as an array > like this the following. So i am not sure if it is something that > is going away or not. > setcookie ("admin_access

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Chris Shiflett
--- Steve Buehler <[EMAIL PROTECTED]> wrote: > Well, if I take off the "string domain" part, it will work just > fine. This is what I was trying to explain. The cookie wasn't being returned, because the browser didn't think the hostname matched. By leaving it out, the browser will use whatever it

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
Something else I found out now. I think it was Cpt John W. Holmes (not sure though) that said I couldn't have a cookie as an array like this the following. So i am not sure if it is something that is going away or not. setcookie ("admin_access[host]", "$cookhost",0,"/","$cookhost"); setcookie (

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Steve Buehler
h. Just found out what was wrong. These are the specs that php.net says a setcookie function can have: setcookie ( string name [, string value [, int expire [, string path [, string domain [, int secure]) Well, if I take off the "string domain" part, it will work just fine. The proble

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Chris Shiflett
--- Steve Buehler <[EMAIL PROTECTED]> wrote: > $cookhost=$_SERVER["HTTP_HOST"]; > header("Set-Cookie: aa_host=$cookhost;"); > setcookie ("aa_host", "$cookhost",0,"/","$cookhost"); > setcookie ("aa_host", "localhost",0,"/","localhost"); > setcookie ('aa_host', 'localhost',0,'/','localhost'); ... > I

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Jeff Harris
On Jul 31, 2003, "Steve Buehler" claimed that: |I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP |4.2.3 on my laptop and my cookies still don't work like they |should. Hopefully someone can explain to me why. | | |I can set the cookie with the "header" line with no problem,

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Tom Rogers
Hi, Friday, August 1, 2003, 8:53:51 AM, you wrote: SB> I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP SB> 4.2.3 on my laptop and my cookies still don't work like they SB> should. Hopefully someone can explain to me why. SB> $cookhost=$_SERVER["HTTP_HOST"]; SB> header("