I have public pages which do not need login and members pages which do.
Whenever I've logged on, going back to public pages will give request.getRemoteUser()=null.
How do I get the username even if I'm in public pages?
Cheers.
Store the username in the session when the user requests a secure page.