[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
ActionListener on Idle Time ???  XML
Forum Index -> Development
Author Message
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Hi Captain

I want to re direct the page to my log in page whenever the page is idle for a set time. How can I do this ?

Regards, Vincent
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi,

please use TIMER component (below BEANPROCESSING):

There are two attributes:
1. DURATION - this is the "timeout duration", e.g. 600000 for 10 minutes
2. DURATIONTYPE - in your case you may either use "lastroundtrip" or "lastactivity"

The TIMER calls an ACTIONLISTNER.

In the processing of the actionListener you may just invalidate the current session.

Code:
  HttpSessionAccess.getCurrentHttpSession().invalidate();
 


So a fresh session is opened up - starting with the first page of your application, which typically is the logon page...

...or you may your own application logic in the actionListner to navigate back to the logon screen.

Regards, Björn

Björn Müller, CaptainCasa GmbH
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Thanks Captain
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team