VMware {code} Community
begoua
Contributor
Contributor

SessionManager (Keeping Session and Case sensitive Issue)

Hi,

I'm working on a software that interact with vCenter and i have some issue on the connection/session process.

My workflow:

1.User add credential

2.My software log into vCenter through the webservices with SessionManager.Login

3.My software retrieve some informations periodically with the PropertyCollector's methods

Before call the propertycollector, i check that the session is always active with SessionManager.SessionIsActive.

So i keep a unique session as longer as possible from my software.

1st question: Is a good way to do? or after the call of propertycollector i need to logout?

2nd question:

- when i login with "administrator" it's work (whereas the user is "Administrator")

- when i ask if the session "administrator" is active vCenter said false because it's the user "Administrator" that is logged

Is a the case-sensitive issue?

SessionManager.Login is not case-sensitive

SessionManager.SessionIsActive is case-sensitive

Thanks for your help.

Aurélien

0 Kudos
0 Replies