Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How do get the Active Logged Users information


Go to End


2 Posts   413 Views

Avatar
Praveen

Community Member, 49 Posts

26 February 2015 at 6:01pm

Edited: 26/02/2015 6:01pm

As I checked the Auditlog it is empty. It is not saving any information to LoginAttempt.
How do I get the Active Users Information to display all the active users list on the frontpage?

Avatar
Pyromanik

Community Member, 419 Posts

27 February 2015 at 1:46am

Something like:

Member::get()->filter(['LastVisited:GreaterThan'=>date('Y-m-d H:i:s', strtotime(session_cache_expire().' minutes ago'))])