There may also be a way to trigger the 'onunload' event, but since that's 
tied to the specific page you're on, you'll trigger it quite a bit if you 
don't load everything using ajax. 

On Wednesday, December 12, 2012 7:19:15 AM UTC-7, Massimo Di Pierro wrote:
>
> Big can of worms. How do you define the users online? If you mean the 
> users who currently have a page open on your site, then you must use 
> websockets. Look into this:
>
> gluon/contrib/websocket_messaging.py
>
> You need to start it (requires tornado) and look into the file. There is 
> an example of JS to embed in pages so that they establish a websocket when 
> loaded.
>
>
>
> On Wednesday, 12 December 2012 07:06:46 UTC-6, Hassan Alnatour wrote:
>>
>> Dear ALL,
>>
>> How can i get the online users in my site ?
>>
>> Best Regards,
>>
>

-- 



Reply via email to