I started a small app to test this.
On the first page I have a text-item and a button. After the button is pressed the value of the text-item should be saved in the cookie. Here are the process for that:
expires => sysdate + 365);
when others then
But if I look in the chrome developer console I can not see this cookie. Whats wrong?