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锟斤拷锟斤拷