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.
Relevant part of my sitemap:
<!-- for Cinclude -->
<map:match pattern="GenJxTransSer">
<!-- Generate/Transform/Serialize -->
<map:generate type="jx" src="{request-param:GenSrc}" />
<map:transform type="session"/>
<map:transform src="{request-param:TransSrc}"/>
<map:serialize type="html"/>
</map:match>
This Pipeline is called from a cinlude like this:
<cinclude:include
src="cocoon:/GenJxTransSer?GenSrc=docs/jx/loginform.xml&TransSrc=stylesheets/xsl/cinclude/loginform2html.xsl"
/>
Any help would really be appreciated.
Christoph
pgpE9yNjfspBM.pgp
Description: PGP signature
