I am attempting to implement the Redirect to XPages Login Snippet by Paul Withers in my XPages application.
https://openntf.org/XSnippets.nsf/snippet.xsp?id=redirect-to-xpages-login-page
His code is making use of the OpenNTF Domino API which I unfortunately cannot use on production servers due to company polices. Therefore I am trying to replace line 89 using lotus.domino API.
Line 89:
if (!Factory.getSession().getEffectiveUserName().equalsIgnoreCase("anonymous")) {
Creating a session using lotus.domino API requires credentials so how would I go about checking if the user is anonymous without using the OpenNTF Domino API?