DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38025>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38025

           Summary: cookies are not set when max age is specified
           Product: Tomcat 5
           Version: 5.5.12
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: JDK1.5
          Severity: normal
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


I'm using Tomcat 5.5.9 (and tried higher versions  too) and jdk1.5 update 06.

When i use following code in my JSP - cookies are not set to client.

// DO NOT WORK
Cookie cookie = new Cookie("name", "value");
cookie.setMaxAge(3600);
response.addCookie(cookie);

If i remove 2nd line - all works OK.

// WORKS OK
Cookie cookie = new Cookie("name", "value");
response.addCookie(cookie);

This happnes only on linux computers (we use Gentoo). On windows everything is 
working OK.

Before i've been using j2sdk1.4.2_08 and Tomcat 5.0.30 and never seen this 
problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to