setcookie() behavior

From: Date: Tue, 01 Jul 2003 08:28:25 +0000
Subject: setcookie() behavior
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354969@lists.php.net to get a copy of this message
I recently ran into a problem that caused me a few hours to figure out. setcookie() escapes all non-alphanumeric characters. While PHP may transparently decode this, other systems -- namely Java -- do not. It would be nice if anywhere in the manual this behavior is mentioned, though I doubt a raw/escaped switch could be included at this date. I did not find anywhere in a cursory reading of the HTTP RFC a requirement that the pipe character ('|') be escaped, either. All browsers I know of handle it fine. ===== Swiftpaw Foxyshadis, wildlife artist foxyshadis@hotmail.com | http://foxyshadis.dyndns.org/ http://foxyshadis.dyndns.org/journal/foxyshadis __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

« previous php.doc (#969354969) next »