[ciapug] Cookies...

David Champion ciapug@cialug.org
Wed, 30 Jul 2003 17:39:42 -0500


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