Configuring Client Timeout


Since the October 2015 cumulative updates, we in the Support team have been asked about configuring timeout for the Dynamics NAV clients, and this post will attempt to give a simple overview on the topic.

Prior to this update, the Dynamics NAV Windows client timeout configuration was managed at the service level by setting the Idle Client Timeout setting. The value is time, so to configure the Dynamics NAV Windows client to time out after 10 minutes of idleness, you would set this key to 00:10:00  and then restart the Dynamics NAV Server service so that the change would take effect.

There are some additional settings involved in the mechanism here, such as ClientServicesReconnectPeriod and ClientServicesMaxNumberOfOrphanedConnections, and you can read about these and the whole topic in greater details in the MSDN Library. As a short version, to configure the client timeout interval it was sufficient to set the Idle Client Timeout setting.

However, the October 2015 cumulative updates added a new setting: ClientKeepAlive. This  setting is managed at the user level and located in the ClientUserSettings.config file. The value of this setting is given in seconds and defines the interval between ‘pulse’ signals sent by the client to prevent the client from going idle in some scenarios, or for some users.

So as an illustration, since the October 2015 cumulative updates, to configure timeout interval for the Dynamics NAV Windows client to 10 minutes, you must set the following:

  1. In the server configuration file, set Idle Client Timeout  to 00:10:00
  2. In the client configuration file, set ClientKeepAlive  to any value  larger than 600
    This value is in seconds, so 600 equals 10 minutes.

Finally, by popular demand, we changed this in Dynamics NAV 2016 Cumulative Update 8: The ClientKeepAlive setting has been moved from the user level to the service level, and is no longer defined in number of seconds but as a time interval, just like the Idle Client Timeout setting.

So following our example above, to configure a timeout interval for the Dynamics NAV Windows client to 10 minutes, in Dynamics NAV 2016 Cumulative Update 8 and later, you must set the following:

  1. In the server configuration file, set Idle Client Timeout  to 00:10:00
  2. In the server configuration file, set Keep Alive Interval  to a value larger than 00:10:00

To configure the timeout for the Dynamics NAV Web client, it is sufficient to configure the SessionTimeout setting in the web.config file to the relevant interval – in our example it’s 00:10:00.

We hope this clarifies the process for setting the timeout for the Dynamics NAV Windows client and Dynamics NAV Web client.

 

Best regards,

The Dynamics NAV support team

 

Comments (5)

  1. AntonioCHK says:

    What if I need just 2 o 3 sessions to have a different idle timeout.
    I mean: its ok for 90% of my users to be dropped after a 10 minute idle time, but there a some other sessions I wish to keep always alive. Is this possible?

    1. Henrik says:

      Yes this feature must be based on the individual user not one or nothing. The general users I would typical setup to 10min idel and out but we have setup some specific users on specific PC/Hardware eksampel in Warehouse/production where its not smart to have to login!

  2. Chris Potter says:

    Thanks for sharing this. I had not realised there was a timeout feature and now I can better advise my customers.
    Cheers
    Chris Potter

  3. Henning says:

    In NAV 2016 server I have the Idle Client Timeout set to 00:10:00 and the Reconnect Period set to 00:02:00
    Still both idle NAV client users and idle Web client users stay connected forever (still visible on the “Sessions” page when updated)
    Where can I find the Keep Alive Interval setting and Session Timeout setting?

    1. @Henning: If you are running on a NAV 2016 build earlier then CU 8, your clientkeepalive settings will still be located Client side, in ClientUserSettings.config

Skip to main content