EBS Customizations (MOSC)

MOSC Banner

RequestCtx.userIsAnonymous() does not working in iStore 12

In Oracle iStore 11  I had used "RequestCtx.userIsAnonymous()" to check if the user had logged in or not.  If the user did not log in yet they would  see links for "login" and "register."  If they did log in they would see a link for "logout" instead.  

It does not seem to work now in Oracle iStore 12.  What should I be using instead?

Below is the code that used to work in iStore 11:

<%--  login/register or logout? --%>
 boolean anonymous  = RequestCtx.userIsAnonymous();
    if (anonymous == true) {       
            <% String url5 = DisplayManager.getURL("STORE_CUST_ACC_LOGIN"); %>
            <a class="graylnk" href=<%=url5%>> LOGIN</a> |           

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center