note 42806 deleted from function.unserialize by aharvey
| From: | aharvey@php.net | Date: | Tue, 06 Nov 2012 01:18:14 +0000 |
| Subject: | note 42806 deleted from function.unserialize by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191688@lists.php.net to get a copy of this message | ||
Note Submitter: yonman at gamer dot co dot il
----
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.