tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@binarix.com>
Subject Re: How to change session key name
Date Wed, 17 Oct 2001 08:19:40 GMT
Jovie Castaneda wrote:
> 
> sorry to interrupt guys but ive been bugged with this JSESSION problem too..
> i was attempting to create cookies with this code
> 
> Cookie cookie1 = new Cookie("User_ID", Integer.toString(userid));
> res.addCookie(cookie1);
> res.sendRedirect("/test/servlet/MyServlet");

Don't really use cookies in my apps, but doesn't the res.sendRedirect()
actually send the status 307 back to the browser?

Bojan

Mime
View raw message