NoMachine Support

Your questions answered

Knowledge Base

Searching in: Feature Requests
Filter the search results
Target version:
Products:
Status:
Last update:
Searching in: Feature Requests
ID: FR09R04019
Added on:  2020-09-08
Last update: 2020-09-08
Priority: Configuration
Products: NoMachine Server
Target: 7
Status:  Approved
Providing the reason of termination to custom scripts triggered on session closure

Custom scripts triggered on session closure should accept a further parameter to provide the reason of the closure when the session has not been terminated upon user's request.

For example, when the session is terminated because a timeout is reached, the new parameter will report a message similar to: 'terminated because xxxxx reached timeout value'

 

Available for Configuration key Accepted parameter (server.cfg) Accepted parameter (node.cfg)
server,node UserScriptAfterSessionClose session id, username, node host, node port, main session id(*), main session type(*), reason session id, username, session type, display, main session id(*), main session type(*), reason
server,node UserScriptAfterSessionFailure session id, username, node host, node port,main session id(*), main session type(*), reason session id, username, session type, display, main session id(*), main session type(*), reason

(*) 'main session id' and 'main session type' parameters are available only when the user connects to an already running virtual desktop (session shadowing). They indicate respectively the id and type of the session to which the user is connected with his/her own session qualified by 'session id' and 'session type'.

Note that the order of parameters is relevant, i.e. the script should use the parameters in the exact order.

For example, if the custom script is set in UserScriptAfterSessionClose in server.cfg, in case of Linux virtual desktops:

$1 session id
$2 username
$3 node host
$4 node port
$5 main session id
$6 main session type
$7 reason of session closure

and in case of connections to physical desktop:

$1 session id
$2 username
$3 node host
$4 node port
$5 reason of session closure


Notify me when the FR is implemented.