[mapguide-users] Locale, when using the MapGuide API

Kenneth, GEOGRAF A/S ks at geograf.dk
Fri May 25 05:54:57 EDT 2007


I'm using the .Net API to create a new session for the user.
This works fine, with the following code:

        MapGuideApi.MgInitializeWebTier(extensionsDir + "webconfig.ini");
        MgSiteConnection con = new MgSiteConnection();
        con.Open(new MgUserInformation(username, password));
        return con.GetSite().CreateSession();

The returned string contains the session id.
It keeps returning locale "en" in the session string.
When using the Web API, the locale can be sent explicitly, but using the 
.Net API, there are only username and password arguments.
How do I change the new session locale?

-- 
Regards, Kenneth, GEOGRAF A/S




More information about the mapguide-users mailing list