Hi Jackie, You are right the code does not do anything to the session. Is it possible some how to make a request to mapagent from javascript in order to reset the session timeout counter?
Best regards Klaus Leth On Thu, Aug 21, 2014 at 12:32 PM, Jackie Ng <[email protected]> wrote: > This fragment looks suspect: > > // Pings map to avoid timeout > > setInterval(function () { > > var mLayers = map.GetScale(); > > }, 30000); > > If GetScale() doesn't actually make a request to the mapagent with your > session id (and I strongly suspect it doesn't), then you're not actually > doing anything to keep that particular session alive. > > - Jackie > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Mapguide-session-timeout-in-Openlayers-tp5157507p5157559.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users >
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
