RE: setting cookies from an action?

2004-03-16 Thread Menke, John
it appears the setting maxAge to -1 was the problem. cookie does not get set with this. set to (24*60*60) and it works -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 10:39 AM To: Struts Users Mailing List Subject: RE: setting cookies

RE: setting cookies from an action?

2004-03-16 Thread Wendy Smoak
> From: Menke, John [mailto:[EMAIL PROTECTED] > i'm trying this in my action and it's not working: > Cookie myCookie = new Cookie("name", "value"); > response.addCookie(myCookie); I think you have to set an age, or else it's a memory-only cookie and will disappear when you close the browser.