Site icon mulcas

Configuring the vSphere Web (HTML5) Client Session Timeout for VCSA 6.7

Session Timeout

WHAT:

By default, a VMware vSphere Web Client 6.7 session terminates after 120 minutes of idle time. You may want to configure/edit the vSpehre Client idle sessions to:

In my case, I want to set the web client to never time out.

HOW:

In the past, this could be done directly from the c# client. In the current HTML5 client GUI, this option is not available, it is only available on the Flex client, but even if you attempt to change this value from the Flex client from the UI, is not going to work.

Note: I am happy that later this year vSphere 6.7 will release its first update, it is supposed to fully support the new and sexy HTML5 client.

For HTML5 client

  1. Open an SSH session on your VCSA
  2. Type the following commands and hit enter in this order:
shell.set --enabled True
shell
cd /etc/vmware/vsphere-ui/
vi webclient.properties

@ vi Editor:

  1. Navigate to “session.timeout = 120”. Where 120 is the default value in minutes.
  1. Hit insert key to edit.
  2. Delete the default value and enter 0 to never log out the sessions. Or enter the desired value in minutes.
  3. Press Esc key.
  4. Type :wq to write and quit the vi Editor. The new timeout is now set to 0 (in my case)
  5. Stop and start the vSphere Web Client service:
service-control --stop vsphere-ui
service-control --start vsphere-ui

Resources:

https://kb.vmware.com/s/article/2040626
Exit mobile version