You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Forge <fo...@neonics.com> on 2001/01/26 00:17:48 UTC

Check for user login

Hi there,

I want to check if a user has logged in. If so, I want to show the normal
content. If not, I wish to show him a login page.

I'm using a default setup: xml page, taglib, xsl sheet.

My idea was to replace the entire body with a <loginpage/> tag
which is processed by the logicsheet.
Somewhere in the logicsheet i need to decide what page to show.
I tried to match the xsp:page/page node and replace it, no success.
I also tried to move the <xsl:apply-templates/> tag which usually 
comes AFTER the xsp:logic section of my taglib into the logic section
(surrounding it by <xsp:content> tags), and surrounding it by logic to
test wheter a user has logged in. 
None of the above works.

Any ideas?


Re: Check for user login

Posted by Uli Mayring <ul...@denic.de>.
On Thu, 25 Jan 2001, Forge wrote:

> I want to check if a user has logged in. If so, I want to show the normal
> content. If not, I wish to show him a login page.

You can download the auth taglib under http://ulim.cocoonhost.com

Ulrich

-- 
Ulrich Mayring
DENIC eG, Softwareentwicklung