You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by maisonneuve nico <ni...@hotmail.com> on 2003/08/08 17:31:36 UTC
Session and authentication
hy
i have the welcome page:
<page>
<user/>
</page>
i would like use always the same tag (<user/>) that display :
if the user is logged his name
else a authentication form (it's a good practice ?)
i use the authentication Framework.( it's works).
and a styleslsheet with the template :
<xsl:template match="user">
</xsl>
but i dont know how do to see in the template that the user is logged or not
thanks in advance
_________________________________________________________________
Trouvez l'âme soeur sur MSN Rencontres ! http://g.msn.fr/FR1000/9551
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Session and authentication
Posted by Guido Casper <gc...@s-und-n.de>.
maisonneuve nico wrote:
> hy
>
> i have the welcome page:
> <page>
> <user/>
> </page>
>
> i would like use always the same tag (<user/>) that display :
> if the user is logged his name
As Chris pointed out you can use the SessionTransformer for this.
> else a authentication form (it's a good practice ?)
You should let the authentication framework do the redirection to the
authentication form.
Guido
--
Guido Casper
-------------------------------------------------
S&N AG, Competence Center Open Source
Tel.: +49-5251-1581-87
Klingenderstr. 5 mailto:gcasper@s-und-n.de
D-33100 Paderborn http://www.s-und-n.de
-------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org