Security.User GuestUserId Example
The same test can be done using {user.isanonymous()}.
Smartsite SXML | Copy Code |
---|---|
<se:if expression="user.userid() == security.user.guestuserid()"> <se:then>Anonymous user</se:then> <se:else>User: {user.fullname()}</se:else> </se:if> |
Example Result | Copy Code |
---|---|
Anonymous user |