Hi tWH,
Thank you for the finding. That solved my two days of agony.
On my PHP install, “magic_quotes_gpc” is off by default. And it seems like it will be deprecated in future versions of PHP.
I implemented a similar solution except that I check for it:
parse_str(trim(
function_exists( "get_magic_quotes_gpc" )
? stripslashes($_COOKIE[$cookieName])
: $_COOKIE[$cookieName],
'"'
), $session);
That way the code is more portable for different environments where we simply can’t know the status of “get_magic_quotes_gpc”.
Thanks again!