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

Kenneth, GEOGRAF A/S ks at geograf.dk
Fri May 25 14:21:15 EDT 2007


So it does.
Don't know how I could miss that one :/

Thank you very much.

Regards, Kenneth, GEOGRAF A/S




Hidekazu Shimaji wrote:
> 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
>>
>>     
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070525/21f0f8d5/attachment.html


More information about the mapguide-users mailing list