[TYPO3-dev] Set and read cookies

Tapio Markula tapio.markula at xetpoint.fi
Mon Jul 14 12:12:08 CEST 2008


Steffen Kamper kirjoitti:
> Tapio Markula schrieb:
>> Michiel Roos [netcreators] kirjoitti:
>>> Tapio Markula schreef:
>>>> Hi
>>>>
>>>> I would need in an extension JS for cookies
>>>>
>>>> http://www.willmaster.com/library/javascript/set_read_cookies.php
>>>>
>>>> the problem is that I would nee read cookie for *two-level* array 
>>>> cookie
>>>> but examples seems to handle just one level simple cookies.
>>>>
>>>> How to create ReadCookie for two-level cookie, for example for this
>>>
>>> Try using the JavaScript equivalent of serialize/unserialize
>>>
>>>
>>> http://codingforums.com/showthread.php?t=60276
>>
>> Sorry, I didn't understand your point of view.
>> I can't serialize/unserialize a variable, which I don't have get.
>> Do you mean that I should use serialized content for cookies instead 
>> of array cookies?
> 
> Hi,
> 
> look here, shoud help you
> http://www.quirksmode.org/js/cookies.html
> 
> JS isn't the same like php

I know. To be sure of functionality I put simple names for cookies,
which I must read using a JavaScript function.




More information about the TYPO3-dev mailing list