Session Expired Event Notifier
Wednesday, September 19, 2018 at 07:06amHi is there an event notification(https://docs.esignlive.com/content/c_integrator_s_guide/event_notifier/event_notifier.htm) for when the signer's session expires in an iFrame? If not do you know of a way for the parent to tell that the session has expired?
Thanks, Jimmy
Reply to: Session Expired Event Notifier
Wednesday, September 19, 2018 at 08:28amReply to: Session Expired Event Notifier
Thursday, September 20, 2018 at 04:56am(function(){ window.parent.postMessage('ESL:MESSAGE:ERROR:SESSION_EXPIRE', "*"); })();#3, in your parent page, you can receive and handle this message like what you did to other notifiers send from OneSpan Sign (in the example, I refreshed the iFrame page):function receiveMessage(event) { var origin = event.origin || event.originalEvent.origin; var data = event.data; console.log(data, origin); switch (data) { case 'ESL:MESSAGE:ERROR:SESSION_EXPIRE': document.getElementById("myIframe").src += ""; break; default: event.source.postMessage(data, origin) break; } }The attachment is the full complete code. Hope this could help you! Duo