Home > Virtualization > A Quick Hack With vSphere Web Client Timeout

A Quick Hack With vSphere Web Client Timeout

October 24th, 2012 Leave a comment Go to comments

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.

Time to learn how to "Google" and manage your VMware and clouds in a fast and secure


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.

  1. October 24th, 2012 at 00:42 | #1

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

  2. October 24th, 2012 at 01:09 | #2

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

  3. October 24th, 2012 at 07:35 | #3

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

  4. October 24th, 2012 at 15:30 | #4

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

  5. October 24th, 2012 at 19:41 | #5

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

  6. October 25th, 2012 at 16:04 | #6

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

  7. J. Perkins
    February 12th, 2013 at 17:24 | #7

    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. July 21st, 2016 at 08:06 | #8

    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.

  1. October 24th, 2012 at 00:15 | #1
  2. October 24th, 2012 at 10:41 | #2