[opencms-dev] Logging out a Web User
brian at purplemonkey.com
Wed Oct 19 21:00:22 CEST 2005
Thanks in advance for any help you can give.
I'm having trouble logging out a web user.
cms.loginWebUser( username, password ); <-cms is a CmsObject
Logging out (by logging back in as Guest):
cms.loginUser( "Guest",""); <-cms is a CmsObject
Determining who the user is:
String currentUser = cmsjsp.user( "name" ); <- cmsjsp is a CmsJspActionElement
When I want to log out (by logging the user back in as Guest), the cmsjsp.user("name") code continues to return the old name of the web user, not Guest.
Until that point things work as expected. First visiting the site, the user method returns "Guest", after logging in it returns the name of the web user. Just after logging in again as Guest do things go wrong.
Is there a different way I should log out a web user? I didn't find out in the API.
Purple Monkey Studios
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the opencms-dev