This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

logged_in_count

Summary

Fetches the number of users that are logged in.

Usage

fetch( 'user', 'logged_in_count' )

Returns

The number of logged in users (as an integer).

Description

This function counts the number of logged in users (both anonymous and non-anonymous) and returns that count as an integer. A user is considered to be active / logged in if the last access time is within the range of the activity timeout. The timeout can be set using the "ActivityTimeout" directive in a configuration override for "site.ini". The default timeout is one hour.

Examples

Example 1

{def $users=fetch( 'user', 'logged_in_count' )}
There are currently {$users} active users on the system.

Outputs the number of currently active / logged in users.

Balazs Halasy (01/06/2004 5:42 pm)

Balazs Halasy (06/06/2005 1:52 pm)


Comments

There are no comments.