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 after password change

AnnelizeFJan 7 2020 — edited Jan 10 2020

Hi

Please could I have some help on the logout procedure?

Apex 18.1 in the cloud.

I have created a demo app demonstrating my question.

Play (Page 1)

Workspace: AF_PLAY

Login: AF / demo_afaf123

I have a navigation bar menu 'Change Password' which can be accessed by clicking on the user name (AF) dropdown.

This brings up a standard change password modal window. (P1004)

Please note

- that the update password process doesn't actually update the password, it's just there to show what will happen.

- therefore also, there is no evaluation or validation for the new password on this page

After the user has changed their password (SAVE), I want to them to be logged out automatically and redirected to the login screen. (P101)

Now from the documentation, I know I should be using the code below. What I don't know, is where to put it? For now I've just added it as a Process after Update Password, but this assumes that the login window will then be closed and the redirection happen automatically by APEX_AUTHENTICATION.LOGOUT - and this doesn't happen.

APEX_AUTHENTICATION.LOGOUT (p_session_id => :SESSION,

                            p_app_id     => :APP_ID); 

Should this code be on Page 1 instead? If so, I would imaging in the Dialog Close dynamic event, however I'm not sure what my 'Selection Type' should be?

Thanks

Annelize

This post has been answered by Scott Wesley on Jan 7 2020
Jump to Answer
Comments
Post Details
Added on Jan 7 2020
3 comments
434 views