SessionHandler
PHP Manual

SessionHandler::gc

(PHP 5 >= 5.4.0)

SessionHandler::gcCleanup old sessions

Description

public bool SessionHandler::gc ( int $maxlifetime )

Cleans up expired sessions. Called by session_start(), based on session.gc_divisor and session.gc_probability settings.

Parameters

maxlifetime

Sessions that have not updated for the last maxlifetime seconds will be removed.

Return Values

The return value (usually TRUE on success, FALSE on failure).


SessionHandler
PHP Manual