OrangeScape Developer Community

A community for Application Developers on OrangeScape's Platform-as-a-Service

To Capture User Log Information (Login Time, Logout Time, Viewed Models / Reports)

The following are the suggested ways to capture User Log Information:

* In Portal.properties change the following properties as mentioned as follows:

Portal.properties location:(\\OrangeScape\Server\DimensionServer\server\default\deploy\A-dimension-portal.ear\portal-ejb.jar
\portal.properties)


log.user.paths=true (Approximate Line Number: 59)
'
'
'
value.object.cacheable.com.liferay.portal.model.User=true (Approximate Line Number: 981)
value.object.cacheable.com.liferay.portal.model.UserTracker=true (Approximate Line Number: 982)
value.object.cacheable.com.liferay.portal.model.UserTrackerPath=true (Approximate Line Number: 983)

After making these changes, restart the server. Now the tables named User_, usertracker and usertrackerpath will start getting updated with the details such as

* Logout Time (modifieddate field in usertracker table)
* Reports and Model accessed (UserTrackerId and path fields from usertrackerpath table)
* Login Time (lastlogindate field in User_ table)





Note: These details will get updated in the above said tables, only after the session expires due to Signout or browser session expires due to long idle. Session will not expire if a user abnormally closes the browser without making Signout.

Views: 162

Comment

You need to be a member of OrangeScape Developer Community to add comments!

Join OrangeScape Developer Community

© 2017   Created by OrangeScape Technologies.   Powered by

Badges  |  Report an Issue  |  Terms of Service