[opencms-dev] Is a user logged in?
Nacho Fernandez
snatcho at gmail.com
Mon Jul 7 11:11:42 CEST 2008
Hi Karl and list,
If you want to get a list of currently logged in users, use
OpenCms.getSessionManager().getSessionInfos()
That gives you a list of CmsSessionInfo objects. You can iterate through
them asking if any of them has the user (with getUser() method in
CmsSessionInfo) you want to check. It's logged in if it's in the list, not
logged in if otherwise.
Greetings,
Nacho Fernandez.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080707/3cea728a/attachment.htm>
More information about the opencms-dev
mailing list