SessionHandlerInterface::gc

(PHP 5 >= 5.4.0, PHP 7)

SessionHandlerInterface::gcCleanup old sessions

설명

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

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.

반환값

반환 값(보통 성공 시 TRUE, 실패 시 FALSE). 이 값은 처리를 위해 내부적으로 PHP로 반환되는 점에 주의하십시오.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top