SessionHandlerDB::getNumSessions()

Return the number of active sessions in the last 5 mins (300 seconds)

Usage

// basic usage
$int = $sessionHandlerDB->getNumSessions();

// usage with all arguments
$int = $sessionHandlerDB->getNumSessions(int $seconds = 300);

Arguments

NameType(s)Description
$seconds (optional)int

Optionally specify number of seconds (rather than 300, 5 minutes)

Return value

int


SessionHandlerDB methods and properties

API reference based on ProcessWire core version 3.0.252