function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ben MeyersBen Meyers 

Users logged out randomly after oncomplete() fires

I have a VisaulForce page with a button that calls the anctionFunction afRefreshData below.  Randomly the methods reloadDt and resetSearchVariable inside afRefreshData's oncomplete call do not execute.  Rather, they are displayed on the screen as seen in the image.  Somehow the user gets logged out during the execution and is forced to relogin.  

Has anyone seen this behavior?  

 User-added image
 
<apex:actionFunction name="afRefreshData" reRender="dataPanelId" oncomplete="reloadDt(); resetSearchVariable();" status="status" />
function reloadDt(){
            var dtId = 'dataTable';
            var data = $j('body').data('data');
            var lblTotalCountId = 'totalCount';
            reloadData(dtId, data, lblTotalCountId);      
        }

function resetSearchVariable(){
            searchClicked = false;    
        }