At First Timeout, ADFContext.getCurrent().getSecurityContext().getUserPrincipal().getName() Returns Previously Connected User

(Doc ID 2322603.1)

Last updated on OCTOBER 30, 2017

Applies to:

Oracle JDeveloper - Version 11.1.2.2.0 to 11.1.2.4.0 [Release Oracle11g]
Information in this document applies to any platform.

Goal

ADFContext.getCurrent().getSecurityContext().getUserPrincipal().getName() not returning the default

After the user session is timed out the getName function still returns the previous logged in user instead of the default user (anonymous). This only happens on the first session time out. Subsequent times the anonymous user is returned correctly and the control is correctly dispatched to the login page.
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms