[TYPO3-dev] Set and read cookies

Steffen Kamper steffen at sk-typo3.de
Mon Jul 14 10:51:52 CEST 2008


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

vg Steffen




More information about the TYPO3-dev mailing list