Christoph Hermann wrote:

Hello,

on some pages i want to display a login-form wheter the User is logged in or not.
Therefore i need to know if the User is logged in. Is there a way i can do this when the page i server is not enclosed in a <map:act type="auth-protect">
?


I tried
${cocoon.session.getAttribute("org.apache.cocoon.webapps.session.context.SessionContext").get("authentication").getValueOfNode( "authentication/ID")} and ${cocoon.session.getAttribute("org.apache.cocoon.webapps.session.context.SessionContext").get("authentication").getValueOfNode( "ID")} (found this with google) but none of these work.




I use the contaioner authentication (with tomcat or jetty), and get the username in the flowscript simple using cocoon.request.getRemoteUser() this return the username when is called.

Bye Gioni


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



Reply via email to