I'd like to get the full name of the current authenticated user. I use the following function getFullname(getCurrentUserName()). The problem is that the result is sometime empty. For me it is not clear why it is not working sometimes?
If there is no user logged into the session then the method getCurrentUserName() will return "". And therefore also the method getFullName() does not provide a useful value.