struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Norsker" <>
Subject Cookie problem
Date Fri, 02 Nov 2001 10:43:22 GMT

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??

Peter Norsker

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message