You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jo...@jpmorgan.com on 2003/01/17 15:52:22 UTC

Newbie cookie question

All,

Is there any way to code a cookie so that all the webapps
on the same Tomcat server can receive it?

I also need it to disappear when the browser is shut.

Thanks,
Joel


This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Newbie cookie question

Posted by Jacob Kjome <ho...@visi.com>.
Hello joel,

Look into how the cookie path is set.  I think, by default, it is set
to the current context of your app, not the whole server.  You will
need to override this behavior.  See the servlet api for details.  As
far as the cookie disappearing upon browser close, this should happen
unless you specifically set an expiration date for the cookie of
sometime in the future.  Note that *all* open browsers need to be
shutdown in order for the cookie to go away.  If you have 2 browser
windows open and only shut one down, the cookie will still exist.

Jake

Friday, January 17, 2003, 8:52:22 AM, you wrote:


jdjc> All,

jdjc> Is there any way to code a cookie so that all the webapps
jdjc> on the same Tomcat server can receive it?

jdjc> I also need it to disappear when the browser is shut.

jdjc> Thanks,
jdjc> Joel


jdjc> This communication is for informational purposes only.  It is not intended as
jdjc> an offer or solicitation for the purchase or sale of any financial instrument
jdjc> or as an official confirmation of any transaction. All market prices, data
jdjc> and other information are not warranted as to completeness or accuracy and
jdjc> are subject to change without notice. Any comments or statements made herein
jdjc> do not necessarily reflect those of J.P. Morgan Chase & Co., its
jdjc> subsidiaries and affiliates.


jdjc> --
jdjc> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
jdjc> For additional commands, e-mail: <ma...@jakarta.apache.org>



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>