The following simple javascript code in a GAS gadget does not appear to work:
document.cookie="username=John Smith; expires=Mon, 31 Aug 2015 12:00:00 UTC; path=/";
Is this one of those sandbox things that I'm not allowed to do? If so, is there an alternative or workaround?