掲示板

Session timeout - how to catch?

13年前 に Gavin Griffith-Jones によって更新されました。

Session timeout - how to catch?

New Member 投稿: 19 参加年月日: 10/07/06 最新の投稿
I have some cleanup to do (logging out of another system, etc). when a User Session expires (in LR 5).

I have provided a Custom LogoutAction (declared in portal-ext.properties). This is called when I hit the Logout button, but not when the session times out.

There is a PortletSessionListenerManager, which has a sessionDestroyed method, that IS called both when I hit Logout, AND when a session sits idle and times out. This suits me better. However I am unsure how to use it- no examples or docs found- where is the best place to call addListener(...) for this? Is there an init class of some sort I can override (i.e. copy to EXT) to register my logout cleanup handler?
13年前 に Gavin Griffith-Jones によって更新されました。

RE: Session timeout - how to catch?

New Member 投稿: 19 参加年月日: 10/07/06 最新の投稿
... And I have (just after sending to the forum) managed to answer my own question- adding a custom handler to global.startup.events (in portal-ext.properties), that registers for Session creation/destruction events. All good now.