• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Logout exit program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Logout exit program

    1) Which user profile is used to call the logout exit program (user or current_user)?
    2) How is that program called? Should I see a call to vvpgm in the network traffic?
    3) Is the exit program called if the user closes a tab or window without logging out of Valence first?

    Thanks

  • #2
    Answering your questions:
    1. It should be the current user that initiates the exit program call whenever they log out of a session. However if the logout action is triggered via a session termination coming from a third party (i.e., via a timeout, or a manual kill initiated by someone in Active Sessions), then it would be the third party user that's making the call. If your program needs to reliably know the user associated with the session that logged out, that would best be pulled from the sessionDS data structure depicted in example program EXEXITPGM (i.e., sessionDS.vvIBMiUser)
    2. The exit program is called entirely from the back-end via vvUtility_callExitPgm, so you wouldn't see anything on the front-end console.
    3. Yes, closing the browser tab (or even the browser app itself) should trigger a logout on the session, and thus an identical call to the exit program.

    Comment

    Working...
    X