Re: Cookies on WinXP

From: Date: Fri, 01 Aug 2003 00:27:35 +0000
Subject: Re: Cookies on WinXP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157846@lists.php.net to get a copy of this message
--- Steve Buehler <steve@ibapp.com> 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[host]", > "$cookhost",0,"/","$cookhost"); > setcookie ("admin_access[hostName]", > "$hostName",0,"/","$cookhost"); No, this is fine, as I mentioned previously. Yes, I recall someone saying you could not do this, claiming the name was invalid by referencing 2109, but I thought I replied and corrected them. My apologies if I failed to do so. Actually, I just searched and found the link: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&selm=20030730231223.3962.qmail%40web14303.mail.yahoo.com I may write up a detailed explanation of cookies sometime, since they are a somewhat confusing topic (especially with the odd use of words we use, such as setting a cookie). Since they are essentially an extension of the HTTP protocol, it helps to understand the architecture of the Web a bit more to really grok the subject Hope that helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#157846) next »