Hi Chuck,

i have found out who is generating that in my code:

dispatcher.forward(request, response);

the response contains also the set cookie header...it is automatically done
by tomcat...



n828cl wrote:
> 
>> 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.
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/set-cookie-tp28639362p28644188.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to