SessionHandler::gc
SessionHandler::gc
(PHP 5 >= 5.4.0, PHP 7)
SessionHandler::gc — Cleanup old sessions
Description
public bool SessionHandler::gc ( int $maxlifetime )
Cleans up expired sessions. Called randomly by PHP internally when a session starts or when session_start() is invoked. The frequency this is called is based on the session.gc_divisor and 登录查看完整内容