> From: banto [mailto:banto...@gmail.com]
> Subject: RE: set-cookie
> 
> ..then where the
> 
> set-cookie come from if not from the line
> getServletContext().setAttribute("products", products);?

That's part of the init() method, called when the servlet initializes, not when 
it's processing a request.  There's no request or response involved at that 
time, so it's impossible for that code to have any relationship with cookie 
generation or evaluation (or session creation).

See my previous response - you're creating a session somewhere, so Tomcat 
generates the appropriate cookie when that happens.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

Reply via email to