..then where the 

set-cookie come from if not from the line
getServletContext().setAttribute("products", products);?

actually i added this line to another servlet but no
set-cookie header is sent?

thanks

n828cl wrote:
> 
>> From: André Warnier [mailto:a...@ice-sa.com]
>> Subject: Re: set-cookie
>> 
>>     //  Store products in the ServletContext
>>      getServletContext().setAttribute("products", products);
>> 
>> Presumably, if you store something in the context, it is because you
>> want to retrieve it later (or else, what's the point he ?).
>> Now, Tomcat has no way to know when you'll come back to retrieve it, so
>> it has to create a session to store this.
> 
> Nope, that's not it (but I don't know what is, yet).  Attributes stored in
> a ServletContext have a webapp, not session, scope; no session is needed
> here, and nothing needs to be communicated between the client and server
> to retrieve them.
> 
>  - 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-tp28639362p28641797.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