SessionHandler
PHP Manual

SessionHandler::gc

(PHP 5 >= 5.4.0)

SessionHandler::gcCleanup old sessions

Description

public int 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 of the session storage (usually 0 on success, 1 on failure).


SessionHandler
PHP Manual