How to configure VCSA timeout settings so your vSphere Web Client doesn't log off after default 2 hours of inactivity
Don't like it when your vSphere Web Client logs itself off after 2 hours? For your lab, you may want to adjust this time-out duration. Just edit a text file called webclient.properties that's already on your VCSA (vCenter Server Appliance).
For production, tweaks that affect default security settings have obvious security implications. The default behavior is intended to preserve session-based resource allocation. Proceed at your own risk, and instead of disabling time out (0 minutes), likely best to consider something like 1 day (1440 minutes) or 1 week (10080 seconds)
It's pretty simple, and somewhat well documented by VMware in 2 different articles. Yet there's still one surprise error that you'll see me deal with in the video, and the simple path forward.
Still reading? Oh, you're one of those folks who don't want to sit through a video, and would rather I spell out the steps for you, no problem, here you go:
Use PuTTY to open an SSH session on vCenter (VCSA)
cp webclient.properties webclient.properties.bak
now you have a backup, just in case something goes wrong
you'll get prompted:
Swap file ".webclient.properties.swp" already exists!
just type E to edit it anyways, as pictured below
- now that you're editing the file, change session.timeout = 60 to session.timeout = 0 (for never), or some other value you prefer, the video steps you through vi if you're not comfortable with it
restarts the vSphere Web Client Service
close vSphere Web Client, wait ~3-5 minutes for the daemons to restart (almost as long as rebooting VCSA takes)
- launch vSphere Web Client, login
- Increasing the VMware vSphere Web Client session timeout period (2040626)
By default, a VMware vSphere Web Client 5.1 session terminates after 30 minutes of idle time. In vSphere 5.5, the vSphere Web Client session timeout period was increased to 120 minutes by default.
This article provides steps to increase the timeout period for the vSphere Web Client session.
- Configuring New vSphere Web Client Session Timeout
SEP 10 2012 by William Lam
- How to update your ESXi 6.0 host the easy way
It works! Left my vSphere Web Client session running overnight, and it was still connected in the morning, nice!