I am not sure is this is a bug or a feature. Try to set the cookie after the
redirection method, i.e:

response.sendRedirect(...);
response.addCookie(...);
return;

- Boaz

-----Original Message-----
From: GoldenDawn Fan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 02:04
To: [EMAIL PROTECTED]
Subject: sendRedirect and setting cookies


Hi, tomcat3.1 does not support setting cookies in
servlets that do sendRedirect? So, can we still set
cookies in servlets that do "sendRedirect" or can we
use 
either 
a) response.setStatus(response.SC_MOVED_TEMPORARILY);
response.setHeader("Location", newURL);

b) response.setHeader("Refresh", "1", newURL);

Thanks for any kind answers.




__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to