Re-direct into the login screen

rash

Member
Can anyone help me to solve the below stuff?
If user doesn't do any activity in the application till some certain time
of period then it should automatically be re-directed into the login screen.

I am using:
(1) Progress 9.1E
(b) Windows XP
 
Is it a GUI application? If so there is an OCX called PSTimer. Put that on the main screen, and after a certain delay it runs the logout code. The only thing is you'll also need to include code everywhere that catches activity and resets the timer. So quite a large change... Not sure of any other way though.
 
The ABL engine has no built-in mechanism for that, and as Rob pointed out, you must define what exactly you mean by "no activity". The only way I know to achieve something like this is to use a third party OCX timer control that you reset whenever something happens in your application that you define as "activity" and trigger the "re-direct to login" when you receive the corresponding event from the OCX.

Heavy Regards, RealHeavyDude.
 
Do you really need an OCX timer for this ?
The 'activity' event you create could also just update a timestamp you keep yourself, or directly go to the login screen if the current timestamp value is too old.

Edit: I suppose you do, if the logout should happen immediately and not on the next activity.
 
The underlying problem is that the AVM (ABL virtual machine) and the ABL are not multi-threaded. If you need some monitoring in the background while at the same time the UI should stay responsive listening to mouse and keyboard events you need at least two threads. An OCX control can act as a second thread. BTW, Progress ships the PSTimer OCX that can be used with their product.

Heavy Regards, RealHeavyDude.
 
Back
Top