If statistics are enabled, we can filter the requests
in the last X minutes.
Vincent Massol wrote:
But it should be easy to add by modifying code.
For example by
implementing a Servlet Session listener or intercepting XWiki's
authentication. Might even be possible somehow using groovy in a page
but haven't thought more about it.
Thanks
-Vincent
On Oct 6, 2008, at 3:54 PM, Jean-Vincent Drean wrote:
> Hi,
>
> AFAIK there's no easy way to retrieve the list of users currently
> logged in.
> You can list the users currently editing pages with (need
> programming rights) :
>
> --------------------------------------------8
> <--------------------------------------------
> #foreach ($user in $xwiki.search("select distinct lock.userName from
> XWikiLock lock"))
> * $user
> #end
> --------------------------------------------8
> <--------------------------------------------
>
> I've added it to :
>
http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples
>
> JV.
>
> On Fri, Sep 26, 2008 at 8:47 AM, Reto Hotz <reto(a)retohotz.ch> wrote:
>> Hi,
>>
>> Is there a way to get a list of currently logged in users? (Or users
>> that are editing a page)
>> For example when I have to restart XWiki I could ask these users to
>> logout. So that they don't loose any text, they may are editing at
>> this
>> moment.
>>
>> Thanks.
>>
>> Greetings
>> Reto