How To Get List Of Currently Logged In Users?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
edydeyemi
User
Posts: 32

How To Get List Of Currently Logged In Users?

Post by edydeyemi »

Hi All, Please I want to display a list of currently logged in users in PHPMaker 2017? How to go about it? Your help will be greatly appreciated.

Thanks a lot.


sangnandar
User
Posts: 980

Post by sangnandar »

Long story short:

  1. Use audit trail, use db table, track login/logout activity.
  2. Scan audit table, logged in users = users has login but not logout (use datetime value to decide).
  3. Create table view for step (2).

You need to check whether or not automatic logout posted into audit table. If they don't, you need to adjust step (2) to include automatic logout.

Good luck.


Post Reply