7

In Magento I have created multiple admins with different roles. How do I get the list of online admin users. Similar to the online customers list?

I have used

Mage::getSingleton('admin/session')

but this is providing only the current user's details.

Is there any build in functions. If not, how to create similar thing?

  • In table admin_user there is the column logdate (User Last Login Time) – hellcode Sep 18 '15 at 12:56
  • @helcode but with that how can we get the real time list of online admins. – Aswanth Sep 18 '15 at 13:03
6

You should know that it is not possible to find out which users are currently on the site, at least not with reasonable effort. The "online customers" list shows all customers that have been active within the last X minutes.

Since there is no visitor log for admins, you don't have a "last active" time, as it is used for the "online customers" list. You can count all admins that have logged in within the last hour as "online", or implement an admin visitor log on your own, mimicking the customer visitor log.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.