I'm trying the pass the cookie name, JSON, and expire interval to a Javascript function that sets the cookie. I've tested the function with a normal text cookie value and it works. If I try to pass the JSON the javascript chokes. It doesn't seem to like that the string in $json starts with an "{". Is that because the string is executable Javascript?
You should check the rfc specifications for cookies to see how the cookie value needs to be encoded. You cannot just throw any old characters into the cookie value, otherwise the http headers will never be parsed correctly.
Regards, Aparajita www.aparajitaworld.com "If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoylibrary.com _______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
