details:   /erp/devel/pi/rev/8ee96fa90576
changeset: 6515:8ee96fa90576
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Fri Feb 26 13:04:35 2010 +0100
summary:   Added some comments about session ping

diffstat:

 src/org/openbravo/erpCommon/obps/ActivationKey.java   |  2 ++
 src/org/openbravo/erpCommon/utility/VerticalMenu.html |  4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 7e0bfcb1ddd5 -r 8ee96fa90576 
src/org/openbravo/erpCommon/obps/ActivationKey.java
--- a/src/org/openbravo/erpCommon/obps/ActivationKey.java       Fri Feb 26 
13:03:33 2010 +0100
+++ b/src/org/openbravo/erpCommon/obps/ActivationKey.java       Fri Feb 26 
13:04:35 2010 +0100
@@ -383,6 +383,8 @@
    * {...@link ActivationKey#PING_TIMEOUT_SECS} seconds and deactivates them. 
Activity is tracked by
    * the requests the browser sends to look for alerts (see
    * {...@link org.openbravo.erpCommon.utility.VerticalMenu}).
+   * <p/>
+   * PING_TIMEOUT_SECS is hardcoded to 120s, pings are hardcoded in front-end 
to 50s.
    */
   private boolean deactivateTimeOutSessions() {
     // Last valid ping time is current time substract timeout seconds
diff -r 7e0bfcb1ddd5 -r 8ee96fa90576 
src/org/openbravo/erpCommon/utility/VerticalMenu.html
--- a/src/org/openbravo/erpCommon/utility/VerticalMenu.html     Fri Feb 26 
13:03:33 2010 +0100
+++ b/src/org/openbravo/erpCommon/utility/VerticalMenu.html     Fri Feb 26 
13:04:35 2010 +0100
@@ -91,7 +91,6 @@
       }
       
       function updateData() {
-        //var frm = document.frmTotalPedido;
         var paramXMLReq = null;
         return submitXmlHttpRequestWithParams(callback, null, 'ALERT', 
"VerticalMenu.html", false, "&ignoreForSessionTimeout=1", paramXMLReq);
       }
@@ -99,6 +98,9 @@
       function updateAlert()
       {
           updateData();
+          //Frequency of call to update alert is hardcoded to each 50s.
+          //This is used to update the number of active alerts as well as to 
know whether
+          //browser is still open to control active sessions. 
           setTimeout("updateAlert()", 50000);
       }
 

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to