Path

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


logged_in_count

Summary

Counts the number of users who are logged-in and returns it

Usage

fetch( 'user', 'logged_in_count' )

Parameters

NameTypeDescriptionRequired

Returns

The number of currently logged-in users.

Description

Counts the number of logged-in users and returns that count.

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

There are {fetch( 'user', 'logged_in_count' )} active users.

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:42:37 pm
by Jan Borsodi

Last updated

01/06/2004
6:30:19 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.