Author Topic: How to tell what users are currently logged in?  (Read 6786 times)

allenlook

  • Volunteer Moderator
  • Sr. Member
  • ****
  • Posts: 312
    • MSN Messenger - sii_lookal@hotmail.com
    • View Profile
    • SI Group, Inc.
How to tell what users are currently logged in?
« on: February 05, 2010, 08:12:26 pm »
Is there a way for me to know who is currently logged into the system - as much as a stateless environment like the web would allow?

As the administrator, I don't want to be resetting the system while users are logged on,...

Many thanks for your ideas!
I am a volunteer moderator.  Any statements, opinions or observations I contribute are solely mine and are not necessarily shared by the makers of Feng Office.

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: How to tell what users are currently logged in?
« Reply #1 on: February 05, 2010, 11:50:17 pm »
This is a highly desired feature.
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

allenlook

  • Volunteer Moderator
  • Sr. Member
  • ****
  • Posts: 312
    • MSN Messenger - sii_lookal@hotmail.com
    • View Profile
    • SI Group, Inc.
Re: How to tell what users are currently logged in?
« Reply #2 on: February 06, 2010, 10:04:57 am »
I searched the forum several times and didn't find any results, so I thought I would post.  I hope it's not a rehash of a much-discussed feature.  Is there another thread I could refer to?
I am a volunteer moderator.  Any statements, opinions or observations I contribute are solely mine and are not necessarily shared by the makers of Feng Office.

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: How to tell what users are currently logged in?
« Reply #3 on: February 07, 2010, 08:32:55 pm »
I found almost nothing when searching for "logged in" but if you search for "online" you get a lot of threads:

http://forums.fengoffice.com/index.php?topic=776.0
http://forums.fengoffice.com/index.php?topic=2644.0
http://forums.fengoffice.com/index.php?topic=1749.0
http://forums.fengoffice.com/index.php?topic=1747.0
http://forums.fengoffice.com/index.php?topic=1497.0
http://forums.fengoffice.com/index.php?topic=746.0
http://forums.fengoffice.com/index.php?topic=173.0
http://forums.fengoffice.com/index.php?topic=450.0

One of these made mention that it was in the works for v1.5, but we have yet to see it.  Frankly I'm getting disappointed at the lack of major new functionality, all the last few updates seem to be bugfixes and new bugs which need new bugfixes.
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

skyer2000

  • Freshman
  • *
  • Posts: 20
    • View Profile
Re: How to tell what users are currently logged in?
« Reply #4 on: February 09, 2010, 03:29:57 pm »
It's really simply to do.

All you do is update a logged-in table everytime the user clicks on something or changes a page with a timestamp. Then on a "Who's Logged In" module you just run a query that checks who made a click within the last 5-15 minutes.

There are more advanced ways to do this, but the feng office team should just get this basic implementation onto the software.

interjinn

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: How to tell what users are currently logged in?
« Reply #5 on: February 13, 2010, 12:42:10 am »
I believe this information is already being logged. An easy way to get this information in the current Feng Office is to create a report against the user's module:

    Reporting => Users => + Add a Custom Report

Order by [ Last Activity ] [ Descending ]

Columns to print:

    Company
    Username
    Display name
    Last login
    Last activity

Actually... I just looked at my report, and it looks like the "Last Activity" field is only updates at login time since it remains the same as "Last login", in fact the same is true of "Last visit" also.

Maybe it's fixed in 1.6.2 since I'm only in 1.6.1 :)

allenlook

  • Volunteer Moderator
  • Sr. Member
  • ****
  • Posts: 312
    • MSN Messenger - sii_lookal@hotmail.com
    • View Profile
    • SI Group, Inc.
Re: How to tell what users are currently logged in?
« Reply #6 on: February 16, 2010, 12:57:33 pm »
We are on 1.6.2.  I will have a look right now and let you know.
I am a volunteer moderator.  Any statements, opinions or observations I contribute are solely mine and are not necessarily shared by the makers of Feng Office.

allenlook

  • Volunteer Moderator
  • Sr. Member
  • ****
  • Posts: 312
    • MSN Messenger - sii_lookal@hotmail.com
    • View Profile
    • SI Group, Inc.
Re: How to tell what users are currently logged in?
« Reply #7 on: February 16, 2010, 01:02:13 pm »
I can say that in 1.6.2, the table og_users has three columns, last_login, last_visit and last_activity.  I checked the value of last_activity directly through MySQL and then clicked on a tab in FO, and the value did update.
I am a volunteer moderator.  Any statements, opinions or observations I contribute are solely mine and are not necessarily shared by the makers of Feng Office.

allenlook

  • Volunteer Moderator
  • Sr. Member
  • ****
  • Posts: 312
    • MSN Messenger - sii_lookal@hotmail.com
    • View Profile
    • SI Group, Inc.
Re: How to tell what users are currently logged in?
« Reply #8 on: February 16, 2010, 01:05:28 pm »
I've created a custom report sorted by Last_Activity descending that tells me who was in the system most recently.

It's not perfect, but it beats a kick in the head  ;D
I am a volunteer moderator.  Any statements, opinions or observations I contribute are solely mine and are not necessarily shared by the makers of Feng Office.

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: How to tell what users are currently logged in?
« Reply #9 on: February 16, 2010, 03:16:55 pm »
That's a helpful report, allenlook, thanks for that suggestion.
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

allenlook

  • Volunteer Moderator
  • Sr. Member
  • ****
  • Posts: 312
    • MSN Messenger - sii_lookal@hotmail.com
    • View Profile
    • SI Group, Inc.
Re: How to tell what users are currently logged in?
« Reply #10 on: February 16, 2010, 04:13:12 pm »
If there were a way to attach it and save you all the trouble of making it yourself I would do so, but it only took about 60 seconds.
I am a volunteer moderator.  Any statements, opinions or observations I contribute are solely mine and are not necessarily shared by the makers of Feng Office.

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: How to tell what users are currently logged in?
« Reply #11 on: February 17, 2010, 04:37:27 am »
it took me 15 seconds, so no problem thanks for the offer!  ;)
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

allenlook

  • Volunteer Moderator
  • Sr. Member
  • ****
  • Posts: 312
    • MSN Messenger - sii_lookal@hotmail.com
    • View Profile
    • SI Group, Inc.
Re: How to tell what users are currently logged in?
« Reply #12 on: February 17, 2010, 12:30:28 pm »
You are a quicker clicker.  ;D
I am a volunteer moderator.  Any statements, opinions or observations I contribute are solely mine and are not necessarily shared by the makers of Feng Office.

Number8

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
Re: How to tell what users are currently logged in?
« Reply #13 on: February 22, 2010, 12:28:11 pm »
Very useful. 
Is there a way to make this available to non-admin users so they can see who is logged in?

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: How to tell what users are currently logged in?
« Reply #14 on: February 23, 2010, 07:15:59 am »
You can add the ability to manage reports in Administration, Users, Permissions. Not sure if you can make them read-only or not, I haven't tried this but you could experiment.
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?