How to get currently Logged in users list?

Hi All,

I am wondering how can I get the List of currently Logged in users?

Is there any way to figure it out? I was looking into tracker table but didn't get any luck so far.

Any hints or suggestions are highly appreciated.

Environment Details:
Sugar Professional Edition 6.5.14 (Build 1055)
PHP Version 5.3.10

Regards,
Sagar Salunkhe
Parents
  • Hi Sugarbot,
    Try this,
    global $current_user;
    You will get the current loged in user....

    Thanks & Regards
    Sumit Sahay

  • Hi Sugarbot,

    I don't have the answers to your question but just to give you a hint, you can check how the Tracker Report works.
    Login as admin and in the Home page, add new dashlet.
    Add the Tracker Reports and select Show Active Users.
    The report shows the active users and the time.

    hope it helps.
Reply
  • Hi Sugarbot,

    I don't have the answers to your question but just to give you a hint, you can check how the Tracker Report works.
    Login as admin and in the Home page, add new dashlet.
    Add the Tracker Reports and select Show Active Users.
    The report shows the active users and the time.

    hope it helps.
Children
  • haan haan,.. Great!! thanks for your response!!
    It looks like buggy. I had 5 logged in users but on dashlet it was showing 3. For time being it is good.

    Thanks for your help.

    ~Sagar
  • Can you tell me how did you do it?
    I'm using SugarCE and I don't know how to enable Tracker Report

    regards!
  • Hello,

    You can user your session id to track every logged in users to application.

    Tracker table contains session id Right?

    At the time of logged in, you can save session id of current user to session dir. of CRM. If user logged out from app. then deleted that file too. Then you can use those session id to get user id and their username also.

    Or you can add logged-in flag in tracker table to track logged-in user.

    Thanks,

  • I understood, thank you so much!