You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Rees <dr...@ebetinc.com> on 2000/12/12 21:30:49 UTC

RE: Cookie question

Try Cookie.setPath("/");

-Dave

> -----Original Message-----
> From: Rick Bosch [mailto:rbosch@actv.com]
> Sent: Tuesday, December 12, 2000 2:05 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Cookie question
> 
> 
> hey
> 
>     i want to set a cookie so when i go to www.myurl.com/one and i get a
> cookie it is also visible at www.myurl.com/two , but the default 
> behavior is
> not the case.  I tried cookie.setDomain(".myurl.com") and
> cookie.setDomain(request.getServerName()) and nothjing seems to work.
> 
> any ides?
> 
> thanks
> rick