cookie encoding/decoding

From: Date: Thu, 10 Jul 2008 15:50:10 +0000
Subject: cookie encoding/decoding
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-276599@lists.php.net to get a copy of this message
I have a situation where a cookie is being set elsewhere on a site by ASP.NET, and I want to read it in my PHP. However, when getting a cookie in PHP, it does an automatic urldecode (or some kind of decoding). Since the cookie is entered in its pure form, with no encoding, on the ASP.NET side, PHP is actually converting/decoding correct characters that don't need decoding. So, for example a plus sign would become a blank space. This, of course, means I'm getting incorrect info from the cookie. Is there a way to turn off this PHP "feature"? Perhaps a flag in the .ini file? -Jeff

« previous php.general (#276599) next »