SessionHandlerInterface::gc

(PHP 5 >= 5.4.0, PHP 7)

SessionHandlerInterface::gcCleanup old sessions

˵��

abstract public SessionHandlerInterface::gc ( int $maxlifetime ) : int

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

����

maxlifetime

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

����ֵ

�Ự�洢�ķ���ֵ��ͨ���ɹ����� 0��ʧ�ܷ��� 1����