WebPagetest Forums
setCookie only works on repeat call? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: setCookie only works on repeat call? (/showthread.php?tid=14487)

setCookie only works on repeat call? - d96mno - 08-30-2016 09:48 PM

When I set a cookie using below script:
setCookie http://anysite.domain.com name=value
navigate http://anysite.dommain.com/anypage.html

The result is not what I expect. The result should display the same image output in first view and the repeat view - but it doesn't. The expected image always shows up in the repeat view, but never in the first view.


This seems basic and it would surprise me if this is a bug, but I cannot figure out what I am doing wrong. Isn't it supposed to set the cookie for the first request?

Anyone got any ideas?

RE: setCookie only works on repeat call? - pmeenan - 08-31-2016 10:00 PM

For those following along, we had an email thread and the script appears to be doing what it should and the cookie is being sent correctly. Looks like the issue is elsewhere in the application logic for handling the cookie.