note 93818 deleted from function.setrawcookie by danbrown

From: Date: Thu, 01 Oct 2009 17:33:53 +0000
Subject: note 93818 deleted from function.setrawcookie by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161206@lists.php.net to get a copy of this message
Note Submitter: lgb ---- After having several problems with this cookie thing, I'm using base64_encode on the data I put into a cookie, so I can avoid problems, I had before. I tried to set up cookie with data created by serialize() from a PHP array, but it did not work to be able to get it back, after I modified it to use value of base64_encode(serialize(...)) to set up the cookie, and unserialize(base64_decode(..)) to get back the value, everything started to work.

« previous php.notes (#161206) next »