You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/12/23 10:11:39 UTC
DO NOT REPLY [Bug 38025] New: - cookies are not set when max age is specified
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: eshepelyuk@gmail.com
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38025] - cookies are not set when max age is specified
Posted by bu...@apache.org.
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
------- Additional Comments From eshepelyuk@gmail.com 2005-12-23 13:34 -------
(In reply to comment #1)
> > Cookie cookie = new Cookie("name", "value");
> > cookie.setMaxAge(3600);
>
> Did you try other values as well? 3600 = 1 hour, which could be a timezone
> difference (maybe one of the machines has wrong timezone settings)
>
Yes, I've tried many of another values.
> Did you check the HTTP headers of the response?
> Or did you just look in the Cookie-store of your browser?
Hmm. Sorry my mistake. I've been looking only into cookie-store of browsers.
I'm still researching a bug. Try to give you as many info as i'll be able to
obtain.
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38025] - cookies are not set when max age is specified
Posted by bu...@apache.org.
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
yoavs@computer.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From yoavs@computer.org 2006-04-13 18:33 -------
Waiting for more data from original poster and/or a confirmation that it works
for him now in 5.5.16 or later.
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38025] - cookies are not set when max age is specified
Posted by bu...@apache.org.
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
eshepelyuk@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |FIXED
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 38025] - cookies are not set when max age is specified
Posted by bu...@apache.org.
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
------- Additional Comments From mail@andreas-waechter.de 2005-12-23 13:23 -------
> Cookie cookie = new Cookie("name", "value");
> cookie.setMaxAge(3600);
Did you try other values as well? 3600 = 1 hour, which could be a timezone
difference (maybe one of the machines has wrong timezone settings)
Did you check the HTTP headers of the response?
Or did you just look in the Cookie-store of your browser?
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org