You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alexander Smirnoff <as...@vistar.ca> on 2002/04/10 20:41:18 UTC

Cookie question

Hi,

My browser does not recieve cookie... Here is XSP piece:
....
                <xsp-cookie:create-cookies>
                    <xsp-cookie:cookie name="locale">
                        <xsp-cookie:value>rlocale</xsp-cookie:value>
                    </xsp-cookie:cookie>
                </xsp-cookie:create-cookies>
....
Did I forgot something?

Thanks,
Alex.




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Re: Cookie question

Posted by Alexander Smirnoff <as...@vistar.ca>.
Nope. It still doesn't send me a cookie.... Bottom line, it correctly tranlates into helper method:

        XSPCookieHelper.addCookie(objectModel, name, rlocale, "",
                                  domain, 10 * 365 * 24 * 60 * 60, "", "" , 0);

but it does not sends a cookie!... Maybe on some other Cocoon level cookie get losts?

Alex.


----- Original Message ----- 
From: "Vadim Gritsenko" <va...@verizon.net>
To: <co...@xml.apache.org>
Sent: Wednesday, April 10, 2002 2:58 PM
Subject: RE: Cookie question


> > From: Alexander Smirnoff [mailto:asmirnoff@vistar.ca]
> > 
> > Hi,
> > 
> > My browser does not recieve cookie... Here is XSP piece:
> > ....
> >                 <xsp-cookie:create-cookies>
> >                     <xsp-cookie:cookie name="locale">
> >                         <xsp-cookie:value>rlocale</xsp-cookie:value>
> >                     </xsp-cookie:cookie>
> >                 </xsp-cookie:create-cookies>
> > ....
> > Did I forgot something?
> 
> This (AFAIK) works:
> 
>     <xsp-cookie:cookie>
>       <xsp-cookie:name>testname1</xsp-cookie:name>
>       <xsp-cookie:value>testvalue1</xsp-cookie:value>
>  
> <xsp-cookie:setMaxAge><xsp:expr>10*365*24*60*60</xsp:expr></xsp-cookie:s
> etMaxAge>
>     </xsp-cookie:cookie>
> 
> (see cookie.xsp)
> 
> Vadim
> 
> > 
> > Thanks,
> > Alex.
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
> 
> 



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


RE: Cookie question

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Alexander Smirnoff [mailto:asmirnoff@vistar.ca]
> 
> Hi,
> 
> My browser does not recieve cookie... Here is XSP piece:
> ....
>                 <xsp-cookie:create-cookies>
>                     <xsp-cookie:cookie name="locale">
>                         <xsp-cookie:value>rlocale</xsp-cookie:value>
>                     </xsp-cookie:cookie>
>                 </xsp-cookie:create-cookies>
> ....
> Did I forgot something?

This (AFAIK) works:

    <xsp-cookie:cookie>
      <xsp-cookie:name>testname1</xsp-cookie:name>
      <xsp-cookie:value>testvalue1</xsp-cookie:value>
 
<xsp-cookie:setMaxAge><xsp:expr>10*365*24*60*60</xsp:expr></xsp-cookie:s
etMaxAge>
    </xsp-cookie:cookie>

(see cookie.xsp)

Vadim

> 
> Thanks,
> Alex.
> 
> 


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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