Topic: Strange behavior of unserialize($_COOKIE[$cookie_name])
Hello Guys!
This night i encountered some strange behavior of unserialize($_COOKIE[$cookie_name]), it just returned (bool)false.
So I took just the string in $_COOKIE[$cookie_name] and passed it to unserialize by hand and I got the correct result.
I was surprised - what is wrong!?
Finally i solved this strange behavior by using base64_encode/decode. I do not know if this is a real 'bug' - but i tink so.
Here is the patch:
http://familiehaeuser.de/files/base64.patch
-Chepra