Hi,

unfortunately, the use of the logout action is not that easy :(,

You have to use the sunRise-auth action in combination with the
logout action:
<map:act type="sunRise-auth">
   <map:parameter name="handler" value="Einformatyka"/>

   <map:act type="sunRise-logout"/>
   ...

</map:act>

HTH
Carsten 

Carsten Ziegeler 
Open Source Group, S&N AG

> -----Original Message-----
> From: ilfrin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 9:34 PM
> To: [EMAIL PROTECTED]
> Subject: sunRise logout - context cleaning
> 
> 
> Hi,
> 
>    I try to use the sunRise logout action and the logout action itself
>    works fine redirecting me to some page i stated to redirect to. But
>    as I see it doesn't clear the context, the user is still logged in
>    (after calling a protected resource I get access to it instantly)
>    .. I think that I should call some context clearing action, perhaps
>    some xsp or sth ? any ideas what to do about it?
> 
> 
>    the action is defined in the main project dir as :
> 
>    <map:action name="sunRise-auth" 
> src="org.apache.cocoon.sunshine.sunrise.acting.AuthAction">
>                <handlers>
>                          <handler name="Einformatyka" 
> xmlns:map="http://apache.org/cocoon/sitemap/1.0"; 
> xmlns:sunshine="http://sunshine.sundn.de/sunshine/1.0";>
>                                   <redirect-to uri="account/login"/>
>                                   <authentication 
> uri="cocoon://account/login-check"/>
>                          </handler>
>                </handlers>
>    </map:action>
>    <map:action name="sunRise-login" 
> src="org.apache.cocoon.sunshine.sunrise.acting.LoginAction"/>
>    <map:action name="sunRise-logout" 
> src="org.apache.cocoon.sunshine.sunrise.acting.LogoutAction"/>
>    <map:action name="sunRise-loggedIn" 
> src="org.apache.cocoon.sunshine.sunrise.acting.LoggedInAction"/>
> 
>    and the resource itself is defined in the account subdir sitemap as
>    <map:match pattern="logout">
>               <map:act type="sunRise-logout">
>                        <map:parameter name="handler" 
> value="Einformatyka"/>
>               </map:act>
>               <map:redirect-to uri="login"/>
>    </map:match>
> 
>    so loggin in, error-handling works fine, only this last thing .. it
>    redirects to "login" but doesn't logout the user, doesn't clear the
>    context
> 
>    any ideas ?
>    
>    
> -- 
> Bye,
>  ilfrin                          mailto:[EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to