MR. R:>

I think I remember something about the one minute time diff.

I have to say, that I do use it in a couple of our applications.
We have a few abusive users who will open up the database and stay
in it for days if not forced out. We do have a nightly shutdown
policy and users are told to reboot at lunch, but enforcing is
rarely done.. Go figure... Anyway, I know of a few times the
I get complaints from the users of getting knocked out, but I
have set the TIMEOUT to 60 minutes, and I stick to them being
kicked out if they don't use it. I just wish it worked when
the are in forms, and reports and such.
I didn't know about running something if it fires.. great idea!
Some cleanup and a little user feedback would be a good idea
at this point. Something like
HEY butthead, you haven't done anything in the database for an
hour, I shut your connection down so other who acutally do work
can get something done.

Well, maybe a little more politically correct adjustment could
be done to the above statement.. maybe

Jim

A. Razzak Memon wrote:

At 11:31 AM 8/4/2003 -0400, Jim Limberg wrote:


SET TIMEOUT 60 only works if they are not in a
form or report, etc... Almost useless for a lot
of situations.



Jim,


Did you know that in R:BASE 6.5++ (Build:1.842xRT03)
and higher:

If TIMEOUT was set to 1 it always exited after one
minute. Now when TIMEOUT is set to one it will actually
take two minutes of inactivity for it to exit. Two takes
2, three takes 3, and so on. What we do is start a timer
loop that fires every minute. Each minute it increments
a "no activity" flag which is reset to 0 if there is
keystroke activity. This is why there is nothing to
"reset" until the first minute passes. We have also
added a close of any open database just before it bails
out too.

The default for TIMEOUT is 0 (zero), which does not
activate a countdown. TIMEOUT is set in minutes
(not seconds), and all workstations must set TIMEOUT
separately.

When a TIMEOUT occurs, a command file can be run; however,
the command file cannot include a FILLIN or DIALOG command,
or expect a keystroke. If you want to run a command file
when a TIMEOUT occurs, you need to store the name of the
file in a variable called RBTI_TimeOut.

For example:

SET VARIABLE RBTI_TIMEOUT TEXT = 'c:\word\cleanup.rmd'
Note: The command file must end with a RETURN command.

The following command line will exit a user to the
operating system after the user's workstation is inactive
for one hour:

SET TIMEOUT 60

Hope that helps.

Have Fun!

Very Best R:egards,

Razzak.





Reply via email to