Avatar of luciliacoelho
Flag for Portugal asked on

Application Idlle Time out

I would like, for security reasons, to disable an application use without a new login. I have a login screen on my application and I need to call it again after some (configurable) minutes.
How can I set up some iddle time function in order to make the users reintroduce their application's userid and password?
Is there any function or variable (Sys()) that can tell us which is the iddle time of an application (in this case the user is using a form)?
Kind regards

Avatar of undefined
Last Comment
Olaf Doschke

8/22/2022 - Mon
Cyril Joudieh

Create a timer function in your program. Let's say 20 minutes and it sets to the flag of logged in to false just like a session timeout in a web application.

When the user switches from one screen to another, you reset the timer or the LastAction variable.

Use the DATETIME() function and check for DATETIME()-LastAction > 20*60 && 20 minutes.
Pavel Celba

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Olaf Doschke

You can use this code from a previous question.
...see the last comment from the OP, not only the answer accepted...


Bye, Olaf.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck