How to Set Cookie via Script


I am using below script , unable to set cookie. Can you point mistake in below script ?

setCookie herokukey=’{EXPERIMENT:[1063]}’
setViewportSize 1280 1024

Try using this format:

setCookie session=286755fad04869ca523320acce0dc6a4

Explicitly specify the protocol (http://) of the host. Also, the value of the cookie looks like JSON output or something, is that intentional? In any case, you can omit the quotes.