PHP 5.0.3 and base64 encoded cookie value issue?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(I had posted this in the Zend php-general mailing
list
but it did not show up in php.net, so here it is
again)
Greetings,
I am not sure whether this is a bug or a 'feature'
(new to PHP). I have a cookie that is set by our
password server (NON-PHP) for our domain, whose value
is base64 encoded when set.
Now, when I try to retrieve the Cookie from my
PHP/Apache Web server the $_COOKIE['token'] value is
messed up. What I have noticed is the '+' character is
being replaced by ' '.
I have the magic_quotes_gpc set to 'off' and
variables_order set to 'gpcs' in my php.ini.
Currently, I have hacked around by painfully parsing
the $_SERVER['HTTP_COOKIE'] variable and extracting
the 'token' cookie, where its value appears to be
intact as set by our password server.

I would like to avoid this hack if possible, is there
a way to retrieve the 'raw' cookie value without php
'cleansing' it?

Thanks
MK



	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux