I know APEX Session and DB Sessions are not 1:1.
I'm wondering if APEX Session and RAS Sessions (xs_session for RAS Enabled Authentication Schemes) are 1:1.
Reading RAS Documentation, it seems like it should be.
I'm really trying to figure out where to initialize certain things and my Google-fu is lacking.
With VPD, you'd initialize the DB Session on every call via "Initialize Session PL/SQL Code".
With RAS, it looks like you'd initialize the RAS Session once each APEX Login within a CREATE_SESSION callback function. This includes setting initial values for attributes and static items (normal application roles) that are used for for life of session (eg emp_role
in HR RAS Example). Additional, you'd reset/verify certain items each APEX call within an ATTACH_SESSION callback function (eg dynamic application roles).