I'm migrating from j2sdk 1.4 to jdk1.5 and found following problem using Tomcat 5.5 on linux (gentoo). On windows machines probem doesn't occur. I'm using following code to set cookie with specified lifetime
Cookie cookie = new Cookie("name", "value"); cookie.setMaxAge(3600); response.addCookie(cookie);
Using this - cookie is not stoted to client. When i remove setting of life time - cooke is set OK. On windows cookei are set without any problems with lifetime. On linux i am unalbe to set cookei with specified lifetime.