Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Lambert Mickael
Monitoring / Session historical
October 19, 2012 1:26 AM
Answer

Lambert Mickael

Rank: Junior Member

Posts: 58

Join Date: December 29, 2011

Recent Posts

Hello everyone,

I just wanted to know if a session's historical exists in Liferay ?

I want to have all users connected to the portal, and all users who have been connected to the portal for the day. Do you think it's possible ?

I saw that i can have the connected users in the monitoring part of the control panel, but i didn't find a way for the users who have been connected!

Thank you everyone for your help!

Have a good day.

M. Lambert.
Bart Simpson
RE: Monitoring / Session historical
October 19, 2012 1:46 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

You have to enable live tracking. Try enabling it with the property
1live.users.enabled=true
For the information that is available you can use the UserTrackerLocalServiceUtil and to persist the data to database you can set the property.
1 #
2    # Set this to true to track user clicks in the database after a user's
3    # session is invalidated. Setting this to true allows you to generate usage
4    # reports from the database. Use this cautiously because this will store a
5    # lot of usage data.
6    #
7    session.tracker.persistence.enabled=true
Lambert Mickael
RE: Monitoring / Session historical
October 19, 2012 2:20 AM
Answer

Lambert Mickael

Rank: Junior Member

Posts: 58

Join Date: December 29, 2011

Recent Posts

Bart Simpson:
You have to enable live tracking. Try enabling it with the property
1live.users.enabled=true
For the information that is available you can use the UserTrackerLocalServiceUtil and to persist the data to database you can set the property.
1 #
2    # Set this to true to track user clicks in the database after a user's
3    # session is invalidated. Setting this to true allows you to generate usage
4    # reports from the database. Use this cautiously because this will store a
5    # lot of usage data.
6    #
7    session.tracker.persistence.enabled=true



Thank you very much, i already have enabled live.users.enabled. But i just want to have a historical of the connected users.

In the database, do you know what table will be used to register all of those informations ? I'll look to this table, and tell you if the informations in it are good for my project!

Again, thanks!!
Bart Simpson
RE: Monitoring / Session historical
October 19, 2012 5:13 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 523

Join Date: August 29, 2011

Recent Posts

 1`UserTracker` ==
 2  `userTrackerId` bigint(20) NOT NULL,
 3  `companyId` bigint(20) DEFAULT NULL,
 4  `userId` bigint(20) DEFAULT NULL,
 5  `modifiedDate` datetime DEFAULT NULL,
 6  `sessionId` varchar(200) DEFAULT NULL,
 7  `remoteAddr` varchar(75) DEFAULT NULL,
 8  `remoteHost` varchar(75) DEFAULT NULL,
 9  `userAgent` varchar(200) DEFAULT NULL,
10  PRIMARY KEY (`userTrackerId`),


1`UserTrackerPath` (
2  `userTrackerPathId` bigint(20) NOT NULL,
3  `userTrackerId` bigint(20) DEFAULT NULL,
4  `path_` longtext,
5  `pathDate` datetime DEFAULT NULL,


Hope that helps