The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

cookie lost while sendRedirect?

Posted by Tom on January 30, 2002 at 5:19 PM

Hi all, this is the case, hope to get help from you:

1. add a cookie to response
HttpServletResponse.addCookie(Cookie)

2. then, redirect it to a new URL
HttpServletResponse.sendRedirect("the URL")
I have made sure the new URL is in the same domain.
This is tested on Tomcat, SSL is not set up, not a public URL.

Results:
The cookie is not add to client(my local machine).






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us