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
Aamir KhanAamir Khan 

Stale session exception in Lightning component

Hi,

We are trying to create a lightning component and use it on VF page with ltng:out.
Suddenly we are geting exception on VF page on 7/JAN/2016.
Stale Session Exception
"The page you submitted was invalid for your session. Please try your action again."
setcallback response state is INCOMPLETE, instead of SUCCESS.
Helper Code :
({
  getmessage : function(component) {
      //var msg get the value from textarea. 
      var msg = component.get("v.getmessageBodyL");        
      console.log('****msg helper****',msg);       
      //recordId get value from VF pages parameter.
      var recordId = component.get("v.recordId");
      console.log('****recordId helper****',recordId);  
      //action will call msgBody aura enabled method.
      var action = component.get("c.msgBody");
      console.log('****action**** ',action);
      //params provide parameter to msgBody from lightning component to apex controller
      //both variable defined same in msgBody parameter.
      var params = {
                     "msgBodyVar" : msg,
                     "recordId" : recordId
                     };
      //set paramerter.
      action.setParams(params);                           
      action.setCallback(this, function(response) {
          var state = response.getState();
          console.log('****State**** ',state);
          if (state === "SUCCESS") {
               console.log('****state inside if **** ',state);
               component.set("v.showSuccess","TRUE"); 
            }
      });
      $A.enqueueAction(action);
        
  },

Please help