|
Posted by Colin McKinnon on 01/29/07 21:31
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.
Amar:
Cookies are (at least) as reliable as sessions - the problem is ITS THE
WRONG PLACE TO KEEP POLYMORPHIC USER DATA STRUCTURES.
If you must, try using a bitfield. But don't I didn't warn you when it blows
up in your face.
C.
Navigation:
[Reply to this message]
|