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!

How to check if current APEX session is valid?

ApexMeisterJun 25 2020 — edited Jul 2 2020

I'm using apex 20.1 and universal theme.

I have a global page that has dialog closed even that executes a JS.

My issue is if the current page app timed out, apex display a dialog page if you want to re-login or cancel

pastedImage_1.png

From here if I click "CANCEL" it goes back to the page and when I click to do anything apex displays the page below

pastedImage_3.png

The issue is when user clicks "OK" the common JS DA on the global page is firing but since the session is invalid APEX displays this page again.

this basically results to infinite loop and the only way out is for you to close the browser.

The idea is if there is a way to check if the current APEX session is valid then I can add this to my global common DA to check it first.

Thanks

This post has been answered by Keyser on Jun 30 2020
Jump to Answer
Comments
Post Details
Added on Jun 25 2020
4 comments
1,978 views