Re: Cookie array
| From: | Lee Doolan | Date: | Sat, 10 Aug 2002 20:24:58 +0000 |
| Subject: | Re: Cookie array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111976@lists.php.net to get a copy of this message | ||
>>>>> "Jan" == Jan <cwizo@3delavnica.com> writes:
Jan> Hi ! How can I stoor array in to a cookie ?
Jan> Do I just define an array and stoore it in a cookie ? How do
Jan> I access the data in the array then ?
you can use serialize() / unserialize() but be careful because the
amount of storage allowed in a cookie is limited. what i do is to
store thing like serialized arrays and serialized objects in a database
table indexed by the session id.
--
Flowers of morning glory. +-----------------------------------------+
The sky above this street |donate to causes I care about: |
Begins to overcast. | http://svcs.affero.net/rm.php?r=leed_25|
--Sugita +-----------------------------------------+