A Quick Hack With vSphere Web Client Timeout

Last week I released a tiny tool called DoubleCloud Client, which eases the usage of vSphere Web Client. I didn’t have time to add another hack which can bypass the session timeout of vSphere Web Client.

By default, vSphere Web Client times out after 30 minutes of inactivity according to VMware Doc. After timing out, you got to re-login and click back to the page you left out. It’s good for the security, but also not convenient. If you use it on your own desktop and have set up screen saver with password protection, you don’t really need this security feature.

Bothered by SLOW Web UI to manage vSphere? Want to manage ALL your VMware vCenters, AWS, Azure, Openstack, container behind a SINGLE pane of glass? Want to search, analyze, report, visualize VMs, hosts, networks, datastores, events as easily as Google the Web? Find out more about vSearch 3.0: the search engine for all your private and public clouds.

If you want a longer timeout, you can change the setting as William illustrated in his article. In this article, I will show you how to stay connected all the time with a newer version of DoubleCloud Client.

My approach is non-intrusive, meaning you don’t need to change anything on the vSphere server which requires restarting service and affects all the sessions afterwards. With DoubleCloud Client, any user can individually choose whether to time out or not.

To do that, I added a new menu item, under the File menu, which is checkable. It’s not turned on upon starting up, but you can click on the menu item and have it turned on. After that, your session of vSphere Web Client never expires.

You may be curious how it can do the maggic. The idea is simple. A vSphere server terminates a session because the session has been idle over the maximum time. If a client could fake an interaction with the server before the maximum time arrives, the server is fooled that you are still active and resets the session timer. Because I have all the control of the DoubleCloud Client, I simply added a timer which triggers one interaction with the server before the session timeout comes.

Easier said than done. There are some real tricks on how to renew timer and call methods on GUI components from a different timer thread. Since these are coding level details with C#, I won’t discuss them here unless you are really interested to know more. Just leave a comment if so.

The newer version of DoubleCloud Client is uploaded to the original article so you can download it there. Again, no liability or whatsoever there for anyone’s use.

This entry was posted in Virtualization and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Posted October 24, 2012 at 12:42 am | Permalink

    A Quick Hack With vSphere Web Client Timeout (DoubleCloud) http://t.co/gGa3zckJ

  2. Posted October 24, 2012 at 1:09 am | Permalink

    A Quick Hack With vSphere Web Client Timeout http://t.co/PLyD2ld1 #business #tech

  3. Posted October 24, 2012 at 7:35 am | Permalink

    Outro link Curioso http://t.co/erjmnYZO @ss_aravind (Aravind Sivaraman) #web #site

  4. Posted October 24, 2012 at 3:30 pm | Permalink

    A Quick Hack With #vSphere Web Client Timeout http://t.co/GAqP9OGG (via @sjin2008) #VMware

  5. Posted October 24, 2012 at 7:41 pm | Permalink

    A Quick Hack With #vSphere Web Client Timeout http://t.co/EmGvB2aq (via @sjin2008) #VMware

  6. Posted October 25, 2012 at 4:04 pm | Permalink

    How to keep #vSphere #Web Client ALWAYS connected with 1 click? http://t.co/G7qThEpD

  7. J. Perkins
    Posted February 12, 2013 at 5:24 pm | Permalink

    I am interested in the technical details of how you implemented the “interaction” with the webclient. If you would be willing…can you e-mail me the .net code that performs the interaction?

  8. Posted July 21, 2016 at 8:06 am | Permalink

    Simply want to say your article is as astonishing.
    The clearness in your post is just excellent and i can assume you are
    an expert on this subject. Fine with your permission let
    me to grab your feed to keep up to date with forthcoming post.
    Thanks a million and please carry on the enjoyable work.

2 Trackbacks

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


    My company has created products like vSearch ("Super vCenter"), vijavaNG APIs, EAM APIs, ICE tool. We also help clients with virtualization and cloud computing on customized development, training. Should you, or someone you know, need these products and services, please feel free to contact me: steve __AT__ doublecloud.org.

    Me: Steve Jin, VMware vExpert who authored the VMware VI and vSphere SDK by Prentice Hall, and created the de factor open source vSphere Java API while working at VMware engineering. Companies like Cisco, EMC, NetApp, HP, Dell, VMware, are among the users of the API and other tools I developed for their products, internal IT orchestration, and test automation.