Liferay ist zum sechsten Mal in Folge ein Leader im Gartner Magic Quadrant. Hier mehr erfahren

Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Manikandan S
Active Users in Liferay?
4. Oktober 2011 01:35
Antwort

Manikandan S

Rang: Expert

Nachrichten: 492

Eintrittsdatum: 15. September 2010

Neue Beiträge

Hi all,

I want to display the list of Active Users who are all logged in the website.

Is it possible to do in Liferay?
Anil Sunkari
RE: Active Users in Liferay?
4. Oktober 2011 02:17
Antwort

Anil Sunkari

Rang: Expert

Nachrichten: 420

Eintrittsdatum: 11. August 2009

Neue Beiträge

I hope usertracker table will give you full information & you can observe monitoring in control_panel.It also provides you current sessions with user information.

Hope it helps!
Leo Pratlong
RE: Active Users in Liferay?
4. Oktober 2011 02:14
Antwort

Leo Pratlong

Rang: Expert

Nachrichten: 363

Eintrittsdatum: 6. Juli 2010

Neue Beiträge

Hi,

you can set "true" to the property "live.users.enabled" on the portal-ext.properties to allow monitoring through the Control Panel. You will see session ID of connected users. But it's not a real monitoring.
Ravi Kumar Gupta
RE: Active Users in Liferay?
4. Oktober 2011 02:21
Antwort

Ravi Kumar Gupta

Rang: Liferay Legend

Nachrichten: 1298

Eintrittsdatum: 23. Juni 2009

Neue Beiträge

that table will hold data only if live.users.enabled=true is set in properties
Andrew Jardine
RE: Active Users in Liferay?
11. November 2011 13:03
Antwort

Andrew Jardine

Community Moderator

Rang: Liferay Master

Nachrichten: 828

Eintrittsdatum: 22. Dezember 2010

Neue Beiträge

Hi,

I'm trying to do this with Liferay 6, but it doesn't appear to be working for me. I've tried several restarts and cache clearing, but nothing seems to make a difference. In my portal-ext.properties file I have added the required --

live.users.enabled=true

but when I log in, from the control panel I see the message, "there are no live sessions". I even tried querying the usertracker table in the database, but my query returns 0 results. I am logged in as the admin, using localhost, and I am assuming that this doesn't make a difference. Is this a valid assumption?

: I just implemented an Post Login hook that does a check to see if the property is enabled. Here is the code I used, and it is returning true.

1
2        if ( PropsValues.LIVE_USERS_ENABLED )
3            log.info( "-------------------------------------> LIVE USERS HAS BEEN ENABLED" );
4        else
5            log.info( "-------------------------------------> LIVE USERS HAS _NOT_ BEEN ENABLED" );


Any help would really be appreciated.
Andrew Jardine
RE: Active Users in Liferay?
14. November 2011 07:47
Antwort

Andrew Jardine

Community Moderator

Rang: Liferay Master

Nachrichten: 828

Eintrittsdatum: 22. Dezember 2010

Neue Beiträge

Another update. The same setting fro my coworker WORK, but for me they don't the only difference is that I am running LINUX and my coworker is using WINDOWS.

Does anyone know if there are other portal-ext settings that could conflict with this one? I know that there are others that take precedence sometimes, but I haven't read anything like that for this particular setting -- though maybe it's not documented.
Andrew Jardine
RE: Active Users in Liferay?
14. November 2011 10:53
Antwort

Andrew Jardine

Community Moderator

Rang: Liferay Master

Nachrichten: 828

Eintrittsdatum: 22. Dezember 2010

Neue Beiträge

I've solved my own problem. The issue was in my portal-ext.properties configuration. I had changed the post login hook to use MY hook, but failed to append the default (LoginPostAction) class. Once I did that, I was able to see the sessions in the admin portlet.