note 1507 modified in setcookie by ronabop
| From: | ronabop@php.net | Date: | Sat, 26 Aug 2000 05:35:18 +0000 |
| Subject: | note 1507 modified in setcookie by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3333@lists.php.net to get a copy of this message | ||
My previous comment is obsolete. Given the 20-cookie limit, one really doesn't want to use the
<cookie>[subscript] usage, since each element becomes a separate cookie. Instead use serialize
and unserialize, and use unserialize(stripslashes($cookie)) instead of plain unserialize()[see my
note there].
http://www.php.net/manual/function.setcookie.php