Maybe you're a demo master, and you want to conquer your private lab and show it whose boss. You're sick and tired of fat-fingering that dang
email@example.com username then password into your vSphere Client at the most inopportune times, especially if you (wisely) didn't use your browser's built-in password save feature. Maybe you staged a live demo more than 2 hours before you're set to take center stage on a Zoom web meeting, only to find your vSphere Client browser session has logged off just after you share your screen with everybody. Worry no more!
Like the notion of lengthening or even disabling the timeout? How about changing the default value of 120 minutes to something like:
- 480 minutes (8 hours)
- 1440 minutes (24 hours)
- 2880 minutes (48 hours)
- 10080 minutes (7 days)
- 0 minutes (Never)
This step-by-step article with walk through video below has you covered. Gone are the days of sweat on your brow before your live demonstrations!
Warning:: Perform this change in your non-production lab at your own risk. You and you alone are responsible for any harm that may come to your lab as a result of this action that leaves your vSphere cluster wide-open to all sorts of mischief, should somebody find their way onto your network.
Having easy access to VCSA is especially helpful now that beloved SolarWinds VM Monitor is no longer compatible with vSphere (6.7 or 7.0). Now you're able to check in on your vSphere health a hurry, using a dedicated single-click Chrome shortcut to your VCSA appliance.
SSH to your VCSA 7.x appliance
If you don't have SSH access enabled, temporarily turn it on by following along by using VAMI, which in my lab meant browsing to
Type your credentials,
You likely don't have BASH shell active by default, so when prompted, just type:
You'll now see a command like this
root@vcsa [ ~ ]#
Next, you'll want to make a copy of the
webclient.propertiesfile before editing it, so you can roll-back in case you mess up. It's best to copy-and-paste the following 2 commands into your SSH session, one-line-at-a-time:
cp /etc/vmware/vsphere-ui/webclient.properties /etc/vmware/vsphere-ui/webclient.properties.orig vi /etc/vmware/vsphere-ui/webclient.properties
Now that you're inside the VI editor, press your
ikey to go into edit mode, then down-arrow until around the 16th line of code where you'll find:
session.timeout = 120
Change the value from 120 (seconds) to 0 (never), or some other value of your choosing:
session.timeout = 0
To exit the VI editor and save your changes, press
ESCkey, then type
Verify the change has been made, with this simple way to show just the line you're interested in in the file you just edited, and one line above for context . Just paste this one line in:
cat /etc/vmware/vsphere-ui/webclient.properties | grep "session.timeout"
You may now close your SSH window.
You can type exit twice, or just close the window.
Optional - Disable SSH access to your VCSA 7.x appliance
If you prefer to not have SSH left open, it's easiest to just use VAMI again to make the change.
Restart VMware vSphere Client
Easiest to just use VAMI to do this step, shown below. Select Services, scroll down to find VMware vSphere Client, then press the RESTART button and wait for a while for it to finish before proceeding, mine takes about 10 seconds. This is disruptive in that it will bump any logged in users off. When it's done, it show as Healthy / Started.
- Log in to vSphere Client
Since you've restarted the vSphere Client service, if you had any existing vSphere Client web windows still open, you'll find they may have been logged off, just log in if needed, and you're all set.
That's it, enjoy your latest TinkerTry Tip! Speaking of tips, a tip of the hat is owed to Vladen Seget who documented this procedure for vSphere 6.7, see How To Disable vSphere Web Client Inactivity Timeout, based on the original VMware KB 2040626.
All vSphere 7 articles.
All vSphere 7 videos.
- Increasing the VMware vSphere Web Client session timeout period 
Last Updated Feb 12 2020
session.timeout = 150
Note: To set the client to never time out, specify a negative value or 0.