cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malick Fall" <>
Subject Use of SessionPropagatorAction
Date Thu, 19 Dec 2002 03:20:50 GMT
Hi all,

I am a new Cocoon user trying to build a Web application.

Do you have some examples on how to use your SessionPropagatorAction.

I have an http service responsible for Authenticating my users.

My sitemap looks like this:

<map:match pattern="">
    <map:act type="request">
        <map:parameter name="parameters" value="true"/>
        <map:parameter name="default.user" value="foo"/>
        <map:parameter name="default.pwd" value="bar"/>
    <map:serialize type="xml"/>

So I send the username and password to the Http service and get XML back w/
the user info if the Authentication was successful. Something like


Otherwise you get an userinfo element with an error code/message in it
<errormsg>Wrong username/password, try again.</errormsg>

At this point I need to store in the session the username, password,
sessionID and a flag that proves that the authentication was successful. It
cannot happen in an XSP because my Authentication service is HTTP, which
becomes a generator in my sitemap.

After my generator I would like to store /userinfo/userid and
userinfo/password in the session. So I can check is the user was
authenticated B4 letting them go through any other pipeline.

I figured SessionPropagatorAction should be the answer, but I cannot figure
out where and how to use it.

<map:act type="session-propagator">
      <paramater name="user" value="{/userinfo/userid}">
      <paramater name="pwd" value="{/userinfo/password}">
	<paramater name="sessionID" value="???">

Any help would be greatly appreciated.

Thanks, Cocoon *Really Rocks*


Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message