Display currently logged in users

5 Messages Forum Options Options
Embed this topic
Permalink
Reto Hotz
Display currently logged in users
Reply Threaded MoreMore options
Print post
Permalink
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
_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
Jean-Vincent Drean
Re: Display currently logged in users
Reply Threaded MoreMore options
Print post
Permalink
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@...> 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
> _______________________________________________
> users mailing list
> users@...
> http://lists.xwiki.org/mailman/listinfo/users
>



--
Jean-Vincent Drean
_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
vmassol
Re: Display currently logged in users
Reply Threaded MoreMore options
Print post
Permalink
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@...> 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
_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
Sergiu Dumitriu-2
Re: Display currently logged in users
Reply Threaded MoreMore options
Print post
Permalink
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@...> 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


--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users
Reto Hotz
Re: Display currently logged in users
Reply Threaded MoreMore options
Print post
Permalink
Hi,

Thanks for the hints. I'll try them out.

Greetings
Reto


Sergiu Dumitriu wrote:

> 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@...> 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
>
>

_______________________________________________
users mailing list
users@...
http://lists.xwiki.org/mailman/listinfo/users