Re: [mapguide-users] Mapguide session timeout in Openlayers

2017-11-17 Thread Liglio
Hi Klaus, I did the same approuch you did, I can get the map session timeout from mapagent (I put an alert to see it). But my map session is still expiring. I am using MGOS 3.0 and Fusion Viewer. Thanks, Liglio -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html

Re: [mapguide-users] Mapguide session timeout in Openlayers

2014-08-25 Thread Klaus Pedersen
Thank you Jackie, You saved my project it was on the edge of being closed down. I made another mistake of compiling the project for .NET 4.0 but all of the MapGuide 2.2 Api is runing under .NET 2.0 the only thing that did not work was the 3 minut timeout that was my setting on the MapGuide

Re: [mapguide-users] Mapguide session timeout in Openlayers

2014-08-21 Thread Jackie Ng
This fragment looks suspect: // Pings map to avoid timeout setInterval(function () { var mLayers = map.GetScale(); }, 3); If GetScale() doesn't actually make a request to the mapagent with your session id (and I strongly

Re: [mapguide-users] Mapguide session timeout in Openlayers

2014-08-21 Thread Hans Milling
We have some service side code that uses the MapGuide API to perform a request to the MapGuide server. We do an OpenMap request to an empty map. This is called every few minutes or so to keep the session alive on the mapguide server. Best regards Hans Milling... -- View this message in

Re: [mapguide-users] Mapguide session timeout in Openlayers

2014-08-21 Thread Jackie Ng
Assuming you have jquery, just $.ajax to any operation in the mapagent in your setInterval function with your session id is enough to keep it alive. - Jackie -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Mapguide-session-timeout-in-Openlayers-tp5157507p5157573.html Sent

Re: [mapguide-users] Mapguide session timeout in Openlayers

2014-08-21 Thread Jackie Ng
If you want a dynamic setInterval() value instead of hard-coding 30 seconds, you can use GETSESSIONTIMEOUT as your keep-alive function http://trac.osgeo.org/mapguide/wiki/MapGuideRfc66 GETSESSIONTIMEOUT returns the session expiry timeout, which you can use to calibrate/schedule the next

Re: [mapguide-users] Mapguide session timeout in Openlayers

2014-08-21 Thread Klaus Pedersen
I will test it out. It looks like an easy fix. Your are right hardcoding magic numbers is not a good idea :-) /Klaus Leth On Thu, Aug 21, 2014 at 1:22 PM, Jackie Ng jumpinjac...@gmail.com wrote: If you want a dynamic setInterval() value instead of hard-coding 30 seconds, you can use

Re: [mapguide-users] Mapguide session timeout in Openlayers

2014-08-21 Thread Klaus Pedersen
Hi Hans, Do you register your sessions at a service and then the service perform the request to the mapguide server or is it something that you have build into your map application. /Klaus Leth On Thu, Aug 21, 2014 at 12:58 PM, Hans Milling h...@geograf.dk wrote: We have some service side

Re: [mapguide-users] Mapguide session timeout in Openlayers

2014-08-21 Thread Hans Milling
I have the session id registered on the server. But you should have the mapguide session id available in javascript as well and can send this to the code behind to make the actual connection. Hans... -- View this message in context: