vSphere Web Client Immediate Logs Out User After Login

Mindwatering Incorporated

Author: Tripp W Black

Created: 11/05/2019 at 09:19 PM



Upon login, several folks are seeing an immediate logout to their session. The GUI displays, but then the following pop-up overlays.

Pop-up Message:
Your vSphere Client session is no longer authenticated. Please login again.

After clicking the OK button, the user returns to the authentication page where they login again, and loop to the pop-up.

A: Session Time-out Duration Setting:
Although it is possible the session time-out setting was changed by someone, it is unlikely.

Setting location:
# vi /etc/vmware/vsphere-client/webclient.properties
The default is 120 minutes. Locate and uncomment to change.
session.timeout = 120
<esc> + wq

After changing, restart the vsphere-client service:
# /etc/init.d/vsphere-client restart

B: Incorrect DNS resolution:
Less likely, they are using a secondary DNS alias that doesn't match the primary SSO for which the appliance VM was not configured.
(e.g. mwnet.local vs mwnet.com)
Both could resolve by DNS, but only one works.

C: Cookies are corrupt in the web browser. Clear them:
1. Go up to the browser security lock with the caution symbol. Click it.
2. Click the Clear Cookies and Site Data ... option at the bottom of the pop-up overlay.
3. In the pop-up dialog, choose the FQDN (domain name) of your vSphere web client, and click the Remove button.
4. Click the refresh icon at the top of the browser tab to refresh the page and login.

previous page