ConnectByCookie
Connects TerraExplorer to a SkylineGlobe Server using a cookie generated by the server when the user logged in during a previous session. This method executes synchronously, meaning it returns after connecting to SkylineGlobe Server. If you want to execute asynchronously, use ConnectByCookieAsync instead.
JavaScript |
|
ConnectByCookie( URL, sCookie, bRememberMe) |
C# |
|
void ConnectByCookie ( string URL, string sCookie, [bool bRememberMe = False]) |
C++ |
|
HRESULT ConnectByCookie ( BSTR URL, BSTR sCookie, VARIANT_BOOL bRememberMe) |
Parameters
URL
The URL of the SkylineGlobe Server. If this parameter is set to an empty string, TerraExplorer connects to the last server it connected to.
sCookie
The SGS cookie generated by SGS when the user originally logged in. This cookie is used to identify a returning user.
bRememberMe
A Boolean that determines whether the login details should be remembered for automatic completion in future logins.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.