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?

7ochem
7,61516 gold badges54 silver badges82 bronze badges
asked Sep 18, 2015 at 12:26
2
  • In table admin_user there is the column logdate (User Last Login Time) Commented Sep 18, 2015 at 12:56
  • @helcode but with that how can we get the real time list of online admins. Commented Sep 18, 2015 at 13:03

1 Answer 1

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.

answered Sep 18, 2015 at 13:24

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.