Hi, All,
Apex 24.2.5. I have a simple navigation link shown here for LOGOUT, If one user logins out with unsaved IG data and next user immediately logins on, she gets the yellow warning “ the session has ended” and the logon won't work. I understand unsaved data will be lost and we are OK with that, but how can I prevent “the session has ended” from showing up? Currently I can get over with this error by reloading login page 9999, it would be nice if i could use a javascript event to save the changed data in advance or reload page 9999 post-logout, thank you for any suggestions.
Addition: I have this code under “execute when page loads” which might cause this “session has ended error” for the session is indeed already killed during page UNLOAD.
window.onbeforeunload =() =>{ if (itemsGridStatus.changed) app.quietSave("CART_IG_ID", itemsGridStatus)};
