Jump to content

How to track user active time based on session login and logout


Mirza
 Share

Recommended Posts

How to track user active time based on session login and logout.

Basically, I want to get the report that each user login time and logout time/session inactivity time.

Is there any module available or we can use any hooks to simulate the above.

Thanks in advance for your support.

Link to comment
Share on other sites

If you want to see the current situation real-time, you could install the built-in Session Handler DB module. This changes ProcessWire to use database sessions (instead of storing session data on the disk) and also provides a handy overview under Setup > Sessions that displays currently active users, when they last did something, and where they are on the site right now.

I'm not aware of a module that would track this kind of data in the long term and/or store it in a log file, but I'm guessing that it wouldn't be terribly difficult to build one on top of the database sessions module. Someone else might have a better idea about this though.

The Login History module tracks when users last logged in, but it doesn't track logouts, so it's probably not much of a help in this case.

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...