This content has been marked as final. Show 2 replies
If the returned value is null, user is not logged in
If user is logged in you get the username of the user returned
Thanks for your replying, but I think method getPrincipal() has scope only in this request, so it can not get user information from other request or request from other PC.