Not for Powershell, but the undelrying Vim.dll.
I wish to use this in a web environ and rather than deal with file management nightmares I want to scrape the vmware_soap_session cookie, serialize the value for it, and restore the session from the cookie on the callback rather than relogging in etc.
Well I have the cookie and the reconnect done, but after restoring the Cookie I still have a null ServiceContent. The LoadSession does not have this issue so I imagine there is something I can do to kick the VimClient so it reestablishes the underlying connection. Seems like if I call a GetView for a known entity that can help, but it seems rather brute force. Is there a more elegant way to reestablish the connection after restoring the cookie?
Also, I wish to second the need for a VimClient method for determining if a session is live after restoring. I used to just call CurrentTime on ServiceInstance in the WebServices and capture the exception. The "isSessionActive" in SessionManager needs the username and rather than having to carry that around tooit would be easier to have a bool that used the currentSession data in the cookie. In any case before kicking the VimClient SessionManager is null so its a no go anyways.
J