![]() |
Setting JSON style cookie - Printable Version +- WebPagetest Forums (https://www.webpagetest.org/forums) +-- Forum: WebPagetest (/forumdisplay.php?fid=7) +--- Forum: Bugs/Issues (/forumdisplay.php?fid=10) +--- Thread: Setting JSON style cookie (/showthread.php?tid=12554) |
Setting JSON style cookie - mirm - 09-14-2013 01:25 AM I am unable to set JSON style cookies with either setCookie or by executing javascript. Does WPT support JSON style cookies? This has not worked: setCookie https://www.myurl.com mycookie={"mycookie":true} Neither has this: execAndWait document.cookie='mycookie={"mycookie":true};domain=myurl.com;path=/;'; Is there a bug or am I doing something wrong? I need to be able to set this cookie with several json nodes. RE: Setting JSON style cookie - pmeenan - 09-16-2013 11:35 PM Which browser have you tried with? They all use different methods and there may be a bug or issue with one of them. RE: Setting JSON style cookie - mirm - 09-17-2013 02:51 AM (09-16-2013 11:35 PM)pmeenan Wrote: Which browser have you tried with? They all use different methods and there may be a bug or issue with one of them. I have tried IE9, Chrome and Firefox. Can you tell me what syntax I should be using? |