You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Upayavira <uv...@upaya.co.uk> on 2003/06/05 09:56:05 UTC

Using cookies

Dear All,

I have a small application that I want to be able to set and read a cookie from the 
user's browser. The cookie must be persistent.

In ASP, to set the cookie I would simply say:

Response.cookies("name")=request("name")

Then I can access it with:

Request.cookies("name") 

I would imagine that this should be easy with Cocoon - a combination of an Action to 
set the cookie and an input module to read it. I'm quite prepared to use flow if that'll 
help. 

But I can't find anything to point me in the right direction. 

Any pointers anyone?

Regards, Upayavira


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


Re: Using cookies

Posted by Geoff Howard <co...@leverageweb.com>.
At 05:00 AM 6/5/2003, you wrote:
> >  there is a cookie logikcheet in xsp
>
>Thanks. I'll look into that.
>
> > but i dont know if they are online information (examples) somewhere
>
>Regards, Upayavira

More generally, the request object available from the ObjectModel
should give set/get access on the cookies.  And I am pretty sure
the flow exposes this directly as well.  Check out the javadoc
for o.a.c.environment.request.*

Geoff 


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


Re: Using cookies

Posted by Upayavira <uv...@upaya.co.uk>.
>  there is a cookie logikcheet in xsp

Thanks. I'll look into that.
 
> but i dont know if they are online information (examples) somewhere

Regards, Upayavira

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


Re: Using cookies

Posted by Stavros Kounis <go...@osmosis.gr>.
 there is a cookie logikcheet in xsp

but i dont know if they are online information (examples) somewhere


--stavros
On Thu, 5 Jun 2003, Upayavira wrote:

> Dear All,
>
> I have a small application that I want to be able to set and read a cookie from the
> user's browser. The cookie must be persistent.
>
> In ASP, to set the cookie I would simply say:
>
> Response.cookies("name")=request("name")
>
> Then I can access it with:
>
> Request.cookies("name")
>
> I would imagine that this should be easy with Cocoon - a combination of an Action to
> set the cookie and an input module to read it. I'm quite prepared to use flow if that'll
> help.
>
> But I can't find anything to point me in the right direction.
>
> Any pointers anyone?
>
> Regards, Upayavira
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


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