You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by sheshadri <sh...@apparelxml.net> on 2002/05/06 09:16:04 UTC
How to put user data into SunspotDemoPortal-session at logon time
Hello,
I need to put some user information in the Sunspot demo portal &
extract the information from the session.
can any one please guide as to how do i go about at it .
Thanx,
Sheshadri
RE: How to put user data into SunspotDemoPortal-session at logon time
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
The authentication framework uses a so called authentication resource
to authenticate the user. If this authentication is successful, the
authentication resources delivers some XML for the user.
This XML can contain any information about this user in XML you
want. For the demo portal, the file "sunrise-user.xml" contains
all users and their information, you can simply add your data
there.
This information can be retrieved inside the portal using
the session transformer. By a <session:getxml context="authentication"
path="/"/> you get the XML, the authentication resource delivered
for the current user. By specifying the path attribute you
can selectivly grep some data out of the session context.
HTH
Carsten
Open Source Group sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
http://www.s-und-n.de mailto: cziegeler@s-und-n.de
----------------------------------------------------------------
The Cocoon Book:
http://www.amazon.com/exec/obidos/ASIN/0735712352/apachecocoona-20
The new weblog homepage: http://ziegeler.bei.t-online.de
================================================================
-----Original Message-----
From: sheshadri [mailto:sheshadri@apparelxml.net]
Sent: Monday, May 06, 2002 9:16 AM
To: cocoon-users@xml.apache.org
Subject: How to put user data into SunspotDemoPortal-session at logon time
Hello,
I need to put some user information in the Sunspot demo portal &
extract the information from the session.
can any one please guide as to how do i go about at it .
Thanx,
Sheshadri
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>