1. Moshe Tangi
  2. PowerBuilder
  3. Wednesday, 17 May 2017 09:11 AM UTC

Hi everyone

One of my clients asked if i can sign out automatically from the application if the user is idle for 45 minutes

using pb12.5 classic

any one has an idea ?

 

thanks

Moshe

Accepted Answer
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 17 May 2017 14:44 PM UTC
  2. PowerBuilder
  3. # Permalink

Add this to your app somewhere in the startup code:

Idle(2700)

Then in the Idle event of the application object, you can do any needed cleanup and use Halt to exit.

Comment
There are no comments made yet.
Matthew Balent Accepted Answer Pending Moderation
  1. Wednesday, 17 May 2017 13:19 PM UTC
  2. PowerBuilder
  3. # 1

My assumption is you want to display a logon window after the sign out occurs?

If not you can close the application based on a timer (Idle method).  The Restart method may be of use to you here.

If yes you can display a response window with whatever messaging and sign on process you want the user to do. This could be triggered by the Idle method (which would trigger an application level Idle event after so many seconds).  The application Idle event is where you would do the actual 'work' of cleaning up any unfinished processes/connections and displaying the response window.

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.