tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin van den Bemt" <mar...@isallineed.org>
Subject RE: Cookies and IE5.5
Date Fri, 17 Aug 2001 15:36:07 GMT
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:dave@staffplanner.co.uk]
> Sent: Friday, August 17, 2001 5:28 PM
> To: 'tomcat-user@jakarta.apache.org'
> 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.
> Dave@Staffplanner.co.uk
>


Mime
View raw message