code, but give this is a shot
Cookie cookie = new Cookie(Constants.REMEMBERME, "\""+username+"\"");
cookie.setMaxAge(Integer.MAX_VALUE);
response.addCookie(cookie);
Filip
Sushil Vegad wrote:
> Filip,
> As for the actual code, what I gave below is all there i
ailto:[EMAIL PROTECTED]
Sent: Wednesday, February 27, 2008 1:49 PM
To: Tomcat Users List
Subject: Re: Incorrect cookie value in tomcat5.5.26
hi Sushil
that scenario works just fine for me. you would have to show your actual
code (and a test case) for me to analyze your actual problem
Filip
Sushil
getName())) value = co.getValue();
}
javax.servlet.http.Cookie c = new
javax.servlet.http.Cookie("test","someemail=somedomain.com");
c.setVersion(1);
c.setMaxAge(100);
response.addCookie(c);
%>
done!
<%=value%>
Sushil Vegad wrote:
> Hello,
>
> cookie.setVersion(
getName())) value = co.getValue();
}
javax.servlet.http.Cookie c = new
javax.servlet.http.Cookie("test","someemail=somedomain.com");
c.setVersion(1);
c.setMaxAge(100);
response.addCookie(c);
%>
done!
<%=value%>
Sushil Vegad wrote:
> Hello,
>
Hello,
cookie.setVersion(1) remembers the cookie only for the browser session. A
new browser does not have access to the cookie
We did cookie.setMaxAge(Integer.MAX_VALUE) but that doesn't help.
Any thoughts please?
Thanks,
Sushil Vegad
Technical Lead, Scheduling Project
Serebrum Corpor
Thanks a lot, that fixed it
Thanks,
Sushil Vegad
Technical Lead, Scheduling Project
Serebrum Corporation - translating strategy into results
Work: 609.777.3563
Cell: 732.216.4908
Email: [EMAIL PROTECTED]
Conference Dial-in: 1-218-486-1300, Bridge: 427526
-Original Message-
From
Thanks Konstantin for you prompt response.
Is the solution identified? I don't find it anywhere on google.
-Original Message-
From: Konstantin Kolinko [mailto:[EMAIL PROTECTED]
Sent: Monday, February 11, 2008 11:25 AM
To: Tomcat Users List
Subject: Re: Incorrect cookie value in tomcat5.
.5.26 just returns vsushil instead of
the whole string. Since some of our code was written on JDK 1.4, we
installed the JDK 4 compatibility package for tomcat5.5.26
Please let me know the possible options to fix this.
Thanks,
Sushil Vegad
Technical Lead, Scheduling Project
Serebrum C