Path

ez.no / exponential / documentation / reference / data fetching / user / is_logged_in


is_logged_in

Summary

Figures out if a specified user is logged-in to the system

Usage

fetch( 'user', 'is_logged_in', hash( 'user_id', 42 ) )

Parameters

NameTypeDescriptionRequired
user_id integer The user ID to check Yes.

Returns

True or false

Description

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).

Examples

{section show=fetch( 'user', 'is_logged_in', hash( 'user_id', 42 ) )}

User 42 is currently logged in.

{/section}

Comments

Contents

Reference

Database diagram
Template operators
Template functions
Data fetching
    Class
    Content
    Collaboration
    Layout
    Notification
    Package
    Section
    Shop
    URL
    User
       anonymous_count
       current_user
       is_logged_in
       logged_in_count
       logged_in_list
       logged_in_users
       member_of
       user_role
Modules
XML tags


Created

01/06/2004
5:38:21 pm
by Jan Borsodi

Last updated

01/06/2004
6:29:14 pm
by Jan Borsodi

Authors

Jan Borsodi



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.