Hello,

I'm sending this question again because I 'am still stuck with the problem :
in two words, does Cocoon provide mechanisms for passing a context from a
session to another (see description below) ?

Maybe this is a dumb question or a known issue, but I haven't found the
right thread to help with this.

Please help,
Thank you !!

> Hi all,
>
> I have an application in which a non-authenticated user collects a set of
> items from a catalog (shopping-cart like), and stores the item list in the
> context of the session. I use the session taglib and the session
transformer
> to do so.
>
> To proceed to the cart command, the user logs in. I use the the
> DatabaseAuthenticatorAction to do so. This creates a new session for the
> user.
>
> I'm trying to figure out how to pass the shopping-cart context from the
> unauthenticated session to the authenticated one. But I have trouble
seeing
> how it can be done : is the previous session terminated as soon the user
> authenticates? How can I track info from another session?
>
> Many thanks for your thoughts!!
>
> These are the concerned parts of my sitemap :
>
>   <!-- ______________ Add items to cart  _______________  -->
>   <map:pipeline>
>    <map:match pattern="ajout/*">
>     <map:generate src="panier/panier.xml"/>
>     <map:transform src="xsl/create_context.xsl">
>      <map:parameter name="item_id" value="{1}"/>
>     </map:transform>
>     <map:transform type="session"/>
>     <map:serialize type="xml"/>
>    </map:match>
>   </map:pipeline>
>   <!-- ______________ See cart content _______________ -->
>   <map:pipeline>
>    <map:match pattern="consult">
>     <map:generate type="serverpages" src="panier/consult.xsp"/>
>     <map:transform type="session"/>
>     <map:serialize type="xml"/>
>    </map:match>
>   </map:pipeline>
>
>   <!-- ______________  Authentication _______________ -->
>   <map:pipeline>
>    <map:match pattern="login">
>     <map:act type="authenticator">
>      <map:parameter name="descriptor"
> value="context://dvdcarte/defs/auth-def.xml"/>
>      <map:redirect-to uri="perso_accueil"/>
>     </map:act>
>     <map:redirect-to uri="login.html"/>
>    </map:match>
>   </map:pipeline>
>   <!-- ______________ Protected area _______________ -->
>   <map:pipeline>
>    <map:match type="sessionstate" pattern="*">
>     <map:parameter name="attribute-name" value="userId"/>
>      <map:match pattern="perso_accueil">
>       <map:generate type="serverpages" src="xsp/perso_accueil.xsp"/>
>       <map:serialize type="html"/>
>      </map:match>
>    </map:match>
>   </map:pipeline>
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to