You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Norsker <pe...@norsker.com> on 2001/11/02 11:43:22 UTC
Cookie problem
Hi
I making my first Struts application that uses cookies, but it doesn't seems
to send the cookies to the client.
If I use cookie.setMaxAge(60*60*24*30); to set the max age for 30 days, the
cookie is not send to the client, but if I doesn't set the max age at all,
the cookie is send allright but not kept on the client as descriped i the
J2EE api.
I use the response.addCookie(cookie); after initializing the cookie itself.
Is there anyone having the same problem and maybe knows a way to solve it??
Regards
Peter Norsker