tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boaz Shaham <Bo...@farechase.com>
Subject RE: sendRedirect and setting cookies
Date Wed, 03 Jan 2001 10:08:35 GMT
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:verymeanguy@yahoo.com]
Sent: Wednesday, January 03, 2001 02:04
To: tomcat-user@jakarta.apache.org
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org

Mime
View raw message