cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JD Daniels ...@kismetsoftware.com>
Subject Re: Setting path for cookies in Tomcat / Cocoon
Date Wed, 07 Sep 2005 01:49:10 GMT
ok i misunderstood. I didn't think it mattered where tcat saved the 
cookie... cookie.path("/") has worked for me.

ie, i set a cookie at domain.com/ks/
cookie.path("/")

and the cookie is set for domain.com

JD


Yves Vindevogel wrote:
> It's not about cookies ......... It's about the path of a cookie set by 
> Tomcat for sessions
> 
> On 07 Sep 2005, at 00:05, JD Daniels wrote:
> 
>     I use flow...
> 
>     var cookie = cocoon.response.createCookie("name",value);
>     cookie.path = "/";
>     cookie.comment="Blah Blah";
>     cookie.maxAge=157784630;
>     cocoon.response.addCookie(cookie);
> 
> 
>     JD
> 
> 
>     Yves Vindevogel wrote:
> 
>         Nobody ?
>         On 06 Sep 2005, at 16:19, Yves Vindevogel wrote:
>         Hi,
>         For reasons of sessions, I have to set the path of the cookies
>         to "/"
>         You need to set the cookie path to "/" within your servlet
>         container. Otherwise, for a Cocoon mounted on /cocoon the cookie
>         path will be /cocoon, and the cookie will be ignored when it is
>         proxied from a URL without the /cocoon. Set the cookie path to /
>         and your problem will go away.
>         How can I do this in Tomcat 5 or is this in Cocoon ?
>         Met vriendelijke groeten,
>         Bien à vous,
>         Kind regards,
>         *Yves Vindevogel*
>         *Implements*
>         <Pasted Graphic 2.tiff>
>         Mail: yves.vindevogel@implements.be - Mobile: +32 (478) 80 82 91
>         Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
>         Web: http://www.implements.be
>         /
>         First they ignore you. Then they laugh at you. Then they fight you.
>         Then you win.
>         Mahatma Ghandi./
> 
>         ---------------------------------------------------------------------
> 
>         To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>         For additional commands, e-mail: users-help@cocoon.apache.org
>         Met vriendelijke groeten,
>         Bien à vous,
>         Kind regards,
>         *Yves Vindevogel*
>         *Implements*
>         Mail: yves.vindevogel@implements.be - Mobile: +32 (478) 80 82 91
>         Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
>         Web: http://www.implements.be
>         /
>         First they ignore you. Then they laugh at you. Then they fight
>         you. Then you win.
>         Mahatma Ghandi./
>         ------------------------------------------------------------------------
> 
>         ---------------------------------------------------------------------
> 
>         To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>         For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>     For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 
> Met vriendelijke groeten,
> Bien à vous,
> Kind regards,
> 
> *Yves Vindevogel*
> *Implements*
> 
> 
> 
> Mail: yves.vindevogel@implements.be - Mobile: +32 (478) 80 82 91
> 
> Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
> 
> Web: http://www.implements.be
> /
> First they ignore you. Then they laugh at you. Then they fight you. Then 
> you win.
> Mahatma Ghandi./
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message