Re: note 8520 added to Cookies

From: Date: Fri, 15 Sep 2000 18:50:48 +0000
Subject: Re: note 8520 added to Cookies
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-5053@lists.php.net to get a copy of this message
builder9@hotmail.com wrote: > > But, I read in the PHP bible that you can treat cookies as arrays by using a pointer suffix ie > [#]. This does not appear to remedy the 20 cookie limit. Was it lying!?!?!?! - Moses > > http://www.php.net/manual/features.cookies.php You can treat those cookies as an array, if you have no other cookies it's a 20 element array. If you wish to pack *more* information into a cookie (to get around the 20 cookie limit), look into the serialize and unserialize functions. The reason for the cookie limit is not PHP, but an intentional feature to prevent attacks on web- browsing machines. Imagine, if you will, that a website decided to set 2,000,000,000 cookies on your hard drive, completely filling your disk. :-) Your note has been edited. -ronabop@php.net -- Brought to you from boop!, the dual boot Linux/Win95 Compaq Presario 1625 laptop, currently running RedHat 6.1. Your bopping may vary.

« previous php.notes (#5053) next »