Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: sumadi kwee
  Where is sumadi kwee?
 pekanbaru
 Indonesia
 sumadi kwee
 To: Mohammad Irfan
  Where is Mohammad Irfan?
 karachi
 Pakistan
 Mohammad Irfan
 Tags
Subject: RE: How to auto log-off programatically?
Thread ID: 345424 Message ID: 345505 # Views: 39 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: Security and Application Protection
Date: Thursday, May 24, 2012 3:02:47 AM         
   


Dear Irfan,

I got the same situation here. I'm using a timer control in
an application object and in timer event i put code to check
for idle.

I'm uploading my idletimer class to share.
https://www.foxite.com/uploads/fd7a9ac6-f3f1-471b-8c5c-ff7017f063f1.rar

Just add the idle class to your main form or
main prg

SET CLASSLIB TO IdleTimer ADDITIVE
this.Idletimer = CREATEOBJECT( "IdleTimer" )
** Setting the timeout to 15 Minutes
this.IdleTimer.TimeOut = 15
this.Idletimer.Enabled = .T.

Hope this can help.

Regards
Sumadi


> Dear Experts,
>
> I am running a program over LAN environment (data files are resident on a Windows Server 2003).
> Is it possible to make the users automatically loged off conditionally from the program using some database function or 'wscript' etc?
> Reason is that some users left the pcs as logged in with the program and when electricity goes off, it creates risks for the data.
>
> Thanking you,
> Irfan

ENTIRE THREAD

How to auto log-off programatically? Posted by Mohammad Irfan @ 5/23/2012 10:11:35 AM
RE: How to auto log-off programatically? Posted by Mike Gagnon @ 5/23/2012 11:58:59 AM
RE: How to auto log-off programatically? Posted by Mohammad Irfan @ 5/23/2012 12:09:37 PM
RE: How to auto log-off programatically? Posted by Mike Gagnon @ 5/23/2012 12:20:43 PM
RE: How to auto log-off programatically? Posted by Mohammad Irfan @ 5/23/2012 1:12:34 PM
RE: How to auto log-off programatically? Posted by Mike Gagnon @ 5/23/2012 4:32:59 PM
RE: How to auto log-off programatically? Posted by sumadi kwee @ 5/24/2012 3:02:47 AM
RE: How to auto log-off programatically? Posted by Mohammad Irfan @ 5/24/2012 7:56:10 AM
RE: How to auto log-off programatically? Posted by Mohammad Irfan @ 5/24/2012 8:31:36 AM
RE: How to auto log-off programatically? Posted by Jun Tangunan @ 5/24/2012 3:32:09 AM
RE: How to auto log-off programatically? Posted by Mohammad Irfan @ 5/24/2012 8:04:17 AM
RE: How to auto log-off programatically? Posted by Jun Tangunan @ 5/24/2012 8:18:31 AM
RE: How to auto log-off programatically? Posted by Mohammad Irfan @ 5/24/2012 8:33:30 AM