[opencms-dev] session user , login-form
Christoph P. Kukulies
kuku at physik.rwth-aachen.de
Tue Apr 24 23:47:28 CEST 2007
I'm trying to implement a login mechanism on a web site.
I have taken away the view permission to group "Guests"
and checked "Overwrite inherited" to trigger the login-form
property that is attached to the page.
The login-form - a jsp - is triggered and the login form is displayed.
The login mechanism seem to work. When I open the page from a browser
outside of my workplace I can login. So far, so fine.
Now I want to be able to read the currently logged in user and make it
available on every page, e.g. in the footer like saying:
"you are currently logged in as: [kuku]" - Logout
What are the statements to obtain the current user from the session?
I'm talking about OpenCms workplace users - I would prefer to do that for
Webusers, but would be happy to get it working for "normal" OpenCMS users
for a first try.
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
More information about the opencms-dev
mailing list