note 1507 modified in setcookie by ronabop
| From: | ronabop@php.net | Date: | Sat, 09 Sep 2000 02:57:18 +0000 |
| Subject: | note 1507 modified in setcookie by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4589@lists.php.net to get a copy of this message | ||
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