[ciapug] Cookies...
Chris Van Cleve
ciapug@cialug.org
Wed, 30 Jul 2003 17:42:38 -0500
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
>
>