[ciapug] Cookies...
David Champion
ciapug@cialug.org
Wed, 30 Jul 2003 18:14:00 -0500
LOL, you could do that... if you were insane.
-dc
Chris Van Cleve wrote:
> Wait. you can name the cookie with a . but you have to reference it with
> an _ it will work. It's some weird thing in later versions of PHP
> On Wednesday, July 30, 2003, at 05:39 PM, David Champion wrote:
>
>> Just FYI - if you're ever writing a cookie name... don't put periods
>> in the name, i.e. "my_cookie.1" is a no-no, but "my_cookie_1" is OK.
>>
>> I found this because I was writing cookies with a dynamic name with
>> the period in it, and PHP would write the cookie just fine, but
>> $_COOKIE["my_cookie.1"] is always an empty string. Changing the period
>> to the underscore fixed it.
>>
>> Grr.
>>
>> -dc