note 39436 deleted from function.unserialize by aharvey

From: Date: Tue, 06 Nov 2012 01:18:08 +0000
Subject: note 39436 deleted from function.unserialize by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191686@lists.php.net to get a copy of this message
Note Submitter: yabba at the dot hut ---- caveat: stripslashes!!! if using setcookie('hubba',serialize($data)); to set a cookie, you might want to check $data(unserialize(stripslashes($_COOKIE['hubba'])); to retrieve them back!!! this is, if unserialize fails. you can also print_r($_COOKIE) to look into what you've got back. beats me how the slashes got there in the first place....

« previous php.notes (#191686) next »