You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gajo Csaba <cs...@enyem.com> on 2007/02/20 19:37:39 UTC

How to save some data in the session?

Hello,

I want to do a simple thing. When the user logs in, his ID is retrieved  
 from the database and is saved in the session. No URL rewriting, just  
simple cookies. I want later to be able to access this ID to do stuff. How  
can I do this with an ordinary XSP?

Thanks, Csaba




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


Re: How to save some data in the session?

Posted by Jason Johnston <co...@lojjic.net>.
Gajo Csaba wrote:
> Hello,
> 
> I want to do a simple thing. When the user logs in, his ID is retrieved 
> from the database and is saved in the session. No URL rewriting, just 
> simple cookies. I want later to be able to access this ID to do stuff. 
> How can I do this with an ordinary XSP?

Does the XSP 'session' logicsheet meet your needs?
http://cocoon.apache.org/2.1/userdocs/logicsheets/session.html

If you're not tied to XSP there are plenty of other ways to read/write 
session data: flowscript, sitemap actions, session transformer, etc.

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


Re: How to save some data in the session?

Posted by Stefan Shoeman <st...@googlemail.com>.
Hello Gajo,

take a look at the flow component "continuation-tree":

http://cocoon.apache.org/2.1/userdocs/flow/continuations.html

--
Regards,

Stefan




2007/2/20, Gajo Csaba <cs...@enyem.com>:
>  Hello,
>
> I want to do a simple thing. When the user logs in, his ID is retrieved
>  from the database and is saved in the session. No URL rewriting, just
> simple cookies. I want later to be able to access this ID to do stuff. How
> can I do this with an ordinary XSP?
>
> Thanks, Csaba
>
>
>
>
> ---------------------------------------------------------------------
> 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