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

Hidekazu Shimaji hshimaji at ybb.ne.jp
Fri May 25 10:53:43 EDT 2007


Hello Kenneth,

Please try a SetLocale method of the MgUserInformation class.
It seems to work as you wish.

Regards,
Hidekazu

--- "Kenneth, GEOGRAF A/S" <ks at geograf.dk> wrote:

> 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
> 
> 
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
> 



More information about the mapguide-users mailing list