Returns true if user is logged in and not a guest, returns false otherwise.
Syntax
Security::isLoggedIn()
Arguments
No arguments.
Return value
Returns true if user is logged in and not a guest, returns false otherwise.
Example
This example shows how to check if the current user is logged in.
if (Security::isLoggedIn()) {
echo "I'm logged in";
}
See also: