For those of you having trouble with this. Make sure you put the cookie on the response - even if you're just changing the value. And make sure you have the path correct - if you want the cookie sent on any request to that domain set the path as /. And then make sure you set the maxLength is you want your cookie to stay around after the session.