Jump to content


Photo
- - - - -

Logging off users...gracefully if possible!


2 replies to this topic

#1 matcarr

matcarr

    Newbie

  • Members
  • Pip
  • 8 posts
  • Gender:Male
  • Location:Rugby

Posted 31 March 2014 - 02:11 PM

Hi All,

 

We currently utilise a C program running on HPUX that after a set period of inactivity of a user logs them out, by invoking a single press of the F3 key every 30 seconds until the user is finally logged out. A warning message is displayed to the user telling them that unless they press a key they will be logged out. This process allows for a "graceful" exit from PROIV, rather than just killing the users session, thus avoiding any nasty DB integrity issues or unnceccesary rollbacks.

 

However we are moving to RHEL and the C program is neither compatible with RHEL nor can it be compiled on this platform.

 

Would just like to find out what you use to log users out after inactivity, especially if you are using Linux, RedHat or some other flavour.



#2 Rob Donovan

Rob Donovan

    rob@proivrc.com

  • Admin
  • 1,640 posts
  • Gender:Male
  • Location:Spain

Posted 31 March 2014 - 03:47 PM

Hi,

 

You can use the @TIMEOUT variable in P4 to do that, and setting @TFUNCT to a function that does any tidy up needed first, and then links to OFF.

 

Haven't used P4 for a loooong time so you will have to check, but if I remember correctly, it does the equivalent of pressing ESC/Cancel, and just exits the function directly to @TFUNCT without saving anything. (as you probably shouldnt commit what they might be 1/2 though, atleast that was what we did, and any way.. doing a 'DO' might not work anyway due to other checking in your app)

 

Have a look at the doc here: http://support.proiv...m_variables.htm

 

HTHs,

 

Rob.



#3 matcarr

matcarr

    Newbie

  • Members
  • Pip
  • 8 posts
  • Gender:Male
  • Location:Rugby

Posted 10 April 2014 - 09:44 AM

Thanks Rob - we will give that a go.





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users