<div dir="ltr">I will test it out. It looks like an easy fix.<div><span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)">Your are right hardcoding magic numbers is not a good idea :-)</span></div><div>
<span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)"><br></span></div><div><span style="color:rgb(0,0,0);font-size:13px;background-color:rgb(247,247,247)">/Klaus Leth  </span></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 1:22 PM, Jackie Ng <span dir="ltr"><<a href="mailto:jumpinjackie@gmail.com" target="_blank">jumpinjackie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you want a dynamic setInterval() value instead of hard-coding 30 seconds,<br>
you can use GETSESSIONTIMEOUT as your keep-alive function<br>
<br>
<a href="http://trac.osgeo.org/mapguide/wiki/MapGuideRfc66" target="_blank">http://trac.osgeo.org/mapguide/wiki/MapGuideRfc66</a><br>
<br>
GETSESSIONTIMEOUT returns the session expiry timeout, which you can use to<br>
calibrate/schedule the next GETSESSIONTIMEOUT keep-alive request. Making<br>
this request will also keep said session alive.<br>
<br>
- Jackie<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Mapguide-session-timeout-in-Openlayers-tp5157507p5157575.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Mapguide-session-timeout-in-Openlayers-tp5157507p5157575.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the MapGuide Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</div></div></blockquote></div><br></div>