Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Logout event capture for unsaved IG data

seanzhJul 3 2025 — edited Jul 3 2025

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)};

Screenshot 2025-07-03 at 1.51.36 PM.png

Comments
Post Details
Added on Jul 3 2025
0 comments
67 views