PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD21] - Timer suggestions
[WD21] - Timer suggestions
Iniciado por guest, 11,jul. 2017 09:29 - 5 respuestas
Publicado el 11,julio 2017 - 09:29
Hi All

Looking for a best practice suggestion. I want to build some sort of timer/scheduler into my app so that it will auto-exit at a certain time of the day e.g. 1am. This is to force all users who are logged in but left their desks to be auto logged off. Any suggestions for this simple thing?

TIA
Publicado el 11,julio 2017 - 10:01
Hi JP,

My free groupware class do this, but after n minutes of inactivity. But you can easily change the behavior if you like (or copy some blocks of code).

Look for the post Groupware made for you

cheers
Tor-Bjarne
Publicado el 11,julio 2017 - 10:12
Thanks Tor-Bjarne. I have just found the TIMER() function in WinDev help which is perfect for what I need. I can just call that every 10 minutes or so.

Thanks
Publicado el 11,julio 2017 - 10:21
Even better / simpler - now just using an automatic procedure built into WinDev :)
Publicado el 11,julio 2017 - 10:44
Hi,

Yes - they are cool :) but I recon you don`t want to force a user to log on again if he/she have been working and are active the whole time?

cheers
Tor-Bjarne
Publicado el 11,julio 2017 - 11:30
Tor-Bjarne,

I'm logging users off but only (a) when running under terminal services mode, and (b) between 1am and 2am in the morning so that other things can be done on the servers (e.g. reboots, patching, etc.). Plus our system automatically saves all windows, configurations, settings, preferences, on exit so user can instantly restart as he left it.

Thanks