cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flavio Palumbo" <>
Subject Re: retrieve user in logout action
Date Thu, 13 May 2004 13:00:37 GMT
Hi Nacho,

thank you for the replay, I tried to follow your cues but I didn't solve

I tried to modify the authentication block samples sitemap as follow :


      <!-- ========================================= -->
      <!-- Logout link which invalidates the session -->
      <!-- ========================================= -->
      <map:match pattern="protected/do-logout">
        <map:act type="auth-protect">
          <map:parameter name="handler" value="demohandler"/> 

          <map:generate type="serverpages" src="docs/prova.xsp">
           <map:parameter name="ups" value="{request:remoteUser}"/>
          <map:act type="auth-logout"/>
          <map:redirect-to uri="login"/>

 and prova.xsp looks like below :

<?xml version="1.0"?>
<xsp:page xmlns:xsp=""

 <xsp:logic>System.out.println("prova.xsp"+<util:get-sitemap-parameter name="ups"/>);</xsp:logic>

but in the output of the console I'm not able to find the user ID.

May you help me find where I mistake ?

thanks a lot


>-- Original Message --
>Date: Wed, 12 May 2004 12:03:55 +0100
>From: Nacho Jimenez <>
>Subject: Re: retrieve user in logout action
>Flavio Palumbo wrote:
>>Hi all,
>>forgive me for the quick repost, but I'm getting crazy to figure out how
>>retrieve the user ID that is currently doing logout from the authentication
>>I'd like to get it in a custom action, called just before auth-logout
>>because I need to update some Db tables based on the user ID.
>    Protect the pipeline with the logout action (nesting it with the 
>auth-protect action). That way, you can acccess the Authentication 
>session context via the input module, and pass the parameter to your 
>action from the sitemap.
>    If your action is written in XSP, you can also use the session-fw 

>logicsheet  to get the username from /authentication/ID, but again, it

>has to be protected.
>    Hope that helps
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message