掲示板

How to get active guest user Session Ids in custom portlet

9年前 に Muhammad Taha によって更新されました。

How to get active guest user Session Ids in custom portlet

Junior Member 投稿: 63 参加年月日: 12/05/01 最新の投稿
Hi,

If logged-in as admin, and have sessionIds of a guest users, how to verify whether the sessions associated with session Ids are active or not...

Thanks in advance
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: How to get active guest user Session Ids in custom portlet (回答)

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
you have to have live monitoring enabled, but then you can use the same code as what is in the monitoring page of the control panel.

Note, however, this is not always going to work. If you're in a cluster w/ sticky sessions you may be on one instance and the user's session on another, so the session id may not show even when the session is valid (cuz it's on another system).