You are here: PHP 5.0.3 and base64 encoded cookie value issue? « PHP « IT news, forums, messages
PHP 5.0.3 and base64 encoded cookie value issue?

Posted by Pink Floyd on 03/08/05 22:54

(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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация