跳转到主要内容

gc

SessionHandlerInterface::gc

Cleanup old sessions

ENTITY

public

int

false

SessionHandlerInterface::gc

int

max_lifetime

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

ENTITY

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

ENTITY

Returns the number of deleted sessions on success, ENTITY. Note this value is returned internally to PHP for processing.

ENTITY

ENTITY ENTITY
7.1.0 Prior to this version, the function returned ENTITY on success.