Oracle OAF: Session Information and Management

You can use the following snippets, for storing and getting values from the session:

set session value:

pageContext.putSessionValue("session_xxCode", xxCode_parameterString); 

get session value:

pageContext.getSessionValue("session_xxCode")

remove session value:

pageContext.removeSessionValue("session_xxCode");

Also through pageContext.getApplicationModule(webBean).getOADBTransaction() you can get a lot of session information.
For example:

pageContext.writeDiagnostics(this, "user_id:" + 
                                pageContext.getApplicationModule(webBean)
                                .getOADBTransaction().getUserId(),
                                OAFwkConstants.PROCEDURE);

Leave a Reply