[ciapug] Cookies...
Chris Van Cleve
ciapug@cialug.org
Wed, 30 Jul 2003 18:18:21 -0500
Well, I just know that it works that way for everything coming across
to a php page. $_POST, $_GET, $_REQUEST, $_COOKIE etc. I don't know
why, but that's how they coded it.
Vanish
On Wednesday, July 30, 2003, at 06:14 PM, David Champion wrote:
> 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
>
>
> _______________________________________________
> ciapug mailing list
> ciapug@cialug.org
> http://cialug.org/mailman/listinfo/ciapug
>
>