A question on the connectionState in SPSession: when does the session change to and from
SP_CONNECTION_STATE_DISCONNECTED, i.e.:
SP_CONNECTION_STATE_LOGGED_IN --> SP_CONNECTION_STATE_DISCONNECTED and SP_CONNECTION_STATE_LOGGED_IN <-- SP_CONNECTION_STATE_DISCONNECTED?
-
Is it disconnected upon some kind of timeout, or does it simply mean that the AP isn’t online?
-
If the session is in its
SP_CONNECTION_STATE_DISCONNECTEDstate, do you have to invoke a login to move it toSP_CONNECTION_STATE_LOGGED_INor does that happen whenever you try to do something against the AP?
Thanks.
SP_CONNECTION_STATE_DISCONNECTEDis used for situations when you get booted off the backend for some reason – the most likely cause being the backend going down for maintenance or something similar.When in this state, the library will try and reconnect on its own, and since we never take all of the backend sites down at once unless something truly catastrophic is going on, it’ll likely switch back to
SP_CONNECTION_STATE_LOGGED_INin a few seconds.