ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

anonymous_count

Summary

Fetches the number of anonymous users.

Usage

fetch( 'user', 'anonymous_count' )

Returns

The number of anonymous users as an integer.

Description

This function counts the number of anonymous users currently accessing the site and returns that count (as an integer). An anonymous user is considered to be active if the last access time 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 $visitors=fetch( 'user', 'anonymous_count' )}
There are {$visitors} anonymous users accessing the site.

Outputs the number of anonymous users that are currently accessing the site.

Balazs Halasy (01/06/2004 3:45 pm)

Svitlana Shatokhina (30/03/2006 10:07 am)


Comments

There are no comments.