[mapguide-trac] #1026: Prevent session timeout, and give better error messages (RFC 66)

MapGuide Open Source trac_mapguide at osgeo.org
Mon Jul 20 05:28:54 EDT 2009


#1026: Prevent session timeout, and give better error messages (RFC 66)
---------------------+------------------------------------------------------
 Reporter:  CXYS     |         Owner:  Tom Fukushima
     Type:  defect   |        Status:  reopened     
 Priority:  medium   |     Milestone:  2.2          
Component:  General  |       Version:  2.0.2        
 Severity:  major    |    Resolution:               
 Keywords:           |   External_id:               
---------------------+------------------------------------------------------
Comment (by christinebao):

 Attach patch AjaxViewerPingServer_Fix.patch for fixing problem mentioned
 by Kenneth's comments:[[BR]]
 1. Update misspelled function name from GetSeverSessionTimeout() to
 GetServerSessionTimeout().[[BR]]
 2. Rename webAgent and clientAgent to avoid conflicting with
 ajaxmappane.templ. (Sorry, I didn't know the two templ files can't have
 same variable name)[[BR]]
 3. msie is not used.[[BR]]
 4. Rename function name encodeComponent() to encodeComponentName().[[BR]]
 5. ParseLocalizedFloat() is a function used in bufferui.templ to parse
 float, and I copied it here. Also, the name is changed to
 ParseLocalizedFloatNum().[[BR]]
 6. I'm not sure about your meaning. The default server timeout is 1200
 seconds, and 1200 seconds / 5 = 240 seconds = 4 minutes, that's browser
 pings server every 4 minutes. setInterval requires millisecond as unit,
 that's why *1000.

 In this patch there are also fixes for:[[BR]]
 1. Append time in request URL. This is because IE will cache the request
 and not send to server. By appending current time the request URL is
 always different and no cache happens.[[BR]]
 2. IE should also use XMLHttpRequest instead of
 ActiveXObject("Microsoft.XMLHTTP"), otherwise handler can't work properly.

 Thank you for Kenneth's review again!

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1026#comment:11>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list