[mapguide-users] Mapguide session timeout in Openlayers
Klaus Pedersen
klauslp at gmail.com
Thu Aug 21 04:21:35 PDT 2014
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 <jumpinjackie at gmail.com> 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
> 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/20140821/3ea80ed2/attachment.html>
More information about the mapguide-users
mailing list