ICEfaces
  1. ICEfaces
  2. ICE-9027

ice.onSessionExpiry(callback) executed twice on session expiration

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Tomacat 7, Chrome, Firefox, IE
    • Assignee Priority:
      P2
    • Salesforce Case Reference:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      The following snippet can be used instead to prevent double execution of the callback function:

       ice.onSessionExpiry(HandleExpireSession);
       var executed = false;

       function HandleExpireSession ()
       {
          if(!executed) {
              alert("This is a test");
              executed = true;
          }
       };
      Show
      The following snippet can be used instead to prevent double execution of the callback function:  ice.onSessionExpiry(HandleExpireSession);  var executed = false;  function HandleExpireSession ()  {     if(!executed) {         alert("This is a test");         executed = true;     }  };

      Description

      To reproduce:
      1. deploy attached sample application.
      2. Wait for 1 minute (for session to expire)
      3. Click on command button

      Outcome:


      the following JS will be executed twice:

      ice.onSessionExpiry(HandleExpireSession);
       
       function HandleExpireSession ()
       {
              alert("This is a test");
       };
       
       
      and result into double appearance of the alert box

        Activity

        Evgheni Sadovoi created issue -
        Evgheni Sadovoi made changes -
        Field Original Value New Value
        Attachment Case11991.zip [ 15481 ]
        Evgheni Sadovoi made changes -
        Salesforce Case Reference 5007000000RV9XsAAL
        Ken Fyten made changes -
        Assignee Mircea Toma [ mircea.toma ]
        Fix Version/s 3.3 [ 10370 ]
        Assignee Priority P2 [ 10011 ]
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Evgheni Sadovoi
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: