ez.no / exponential / documentation / reference / data fetching / user / is_logged_in
fetch( 'user', 'is_logged_in', hash( 'user_id', 42 ) )
| Name | Type | Description | Required |
|---|---|---|---|
| user_id | integer | The user ID to check | Yes. |
True or false
Tries to figure out if the specified user is currently logged-in and returns true in that case.
A user is considered active if the last access time is less than the activity timeout, the default is 1 hour and can be configured in site.ini ( ActivityTimeout).
{section show=fetch( 'user', 'is_logged_in', hash( 'user_id', 42 ) )} User 42 is currently logged in. {/section}
Comments