Hey Nataraj,
i have the same problem.
First of all, your code seems to be correct.
I did it in the same way following the class despriction. When you set
the expiring date to one week (Date expires = new Date(new
Date().getTime() + (1000 * 60 * 60 * 24 * 7));) it will work and you
get a cookie.
I
Hi all,
Just been pondering my head over this piece of code.
Date expires = new Date(new Date().getTime() + (1000 * 60 * 60 * 24 *
30));
Cookies.setCookie("token", "token", expires);
Cookies.setCookie("secret", "secret", expires, "localhost", "/",
true);
Cookies.setCookie("uname", "ram", null);