note 42806 added to function.unserialize

From: Date: Sun, 30 May 2004 13:29:59 +0000
Subject: note 42806 added to function.unserialize
Groups: php.notes 
Request: Send a blank email to php-notes+get-70302@lists.php.net to get a copy of this message
yabba at the dot hut: The cookie mechanism for the webserver adds the slashes automatically. instead of just dumping strings into the cookie, make sure you base64_encode them first - to protect the cookie's content from escape characters. Of course, this means that when retrieving the cookie, you'll need to base64_decode the string. ---- Manual Page -- http://www.php.net/manual/en/function.unserialize.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42806 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42806&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42806&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70302) next »