You are here: Re: how to store an array in cookie « PHP Programming Language « IT news, forums, messages
Re: how to store an array in cookie

Posted by Arjen on 01/30/07 07:04

Colin McKinnon schreef:
> Arjen wrote:
>
>> Amar schreef:
>>> Hi All,
>>>
>>> In my application, I have a page, which displays a number of
>>> rows, and each row having a check box . I can check more than one
>>> check box on this page and I have to store all these check box values
>>> on a single cookie . Like if I am storing some ids as the values for
>>> the check boxes ,then I have to put all thesee ids of the checkboxes
>>> into a single cookie , which are checked .
>>>
>>> Please help me.
>>>
>>> Thanks
>>> amar
>> Why cookies ? They are unreliable. Use sessions (or a database if you
>> need to store them for a longer time).
>>
>>
>
> Arjen: how do you think your server knows which session the request is
> associated with.

RTFM :-D
A visitor accessing your web site is assigned an unique id, the
so-called session id. This is either stored in a cookie on the user side
or is propagated in the URL.

Some of the cookies (atleas in older browsers) fail. Cookies are not
reliable.

--
Arjen
http://www.hondenpage.com - Mijn site over honden

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация