If it returns null, then I read something about that this week.. Maby
searching on of the archives for cookies helps you find the problem /
solution...
Also tomcat version could be important and the exception (if any..)

Mvgr,
Martin

> -----Original Message-----
> From: David Oxley [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 5:28 PM
> To: '[EMAIL PROTECTED]'
> Subject: Cookies and IE5.5
>
>
> I am trying to set a cookie that can be picked up from a
> different server to
> the one setting it. They both belong to the same domain (daves.domain.com
> and daves2.domain.com).
> The first server sets the cookie and redirects to the second server where
> the cookie is read.
> On IE5.5 and above the cookie does not get set, but it works fine for IE5
> and Mozilla.
> Is this a bug with later versions of IE or am I doing something wrong.
> This is the code:
>               Cookie c = new Cookie("User", "DAVE");
>               c.setDomain("domain.com");
>               c.setPath("/servlet/LogonServlet");
>               c.setMaxAge(60);
>               c.setVersion(1);
>               resp.addCookie(c);
>               resp.sendRedirect (redirect_url) ;
>
> Dave.
> [EMAIL PROTECTED]
>

Reply via email to