Web API Reference MapGuide Open Source
void MgUserInformation::SetMgSessionId ( CREFSTRING  sessionId  ) 

Initializes user information with a MapGuide session identifier. A session identifier can be created for the current user via MgSite::CreateSession. In order to obtain a session identifier, MgSiteConnection must be opened with valid credentials. Once opened, GetSite can be called to obtain MgSite which can then be used to create a session identifier for the currently logged in user.

Session identifiers contain internally recognized authentication and locale information.

.NET Syntax
void SetMgSessionId(string sessionId);
Java Syntax
void SetMgSessionId(String sessionId);
PHP Syntax
void SetMgSessionId(string sessionId);

Parameters:
sessionId (String/string) MapGuide session identifier
Returns:
Returns nothing


Comments or suggestions? Send us feedback.