SessionUpdateTimestampHandlerInterface::validateId
(PHP 7, PHP 8)
SessionUpdateTimestampHandlerInterface::validateId — Validate ID
说明
Validates a given session ID. A session ID is valid, if a session with that ID already exists. This function is automatically executed when a session is to be started, a session ID is supplied and session.use_strict_mode is enabled.
参数
id
-
The session ID.
+添加备注
用户贡献的备注 1 note
ohcc at 163 dot com ¶
4 years ago
'validateId' is called after 'open' and before 'read' to validate the session id provided by the client, as 'open' -> 'validateId' -> 'read' -> 'write' -> 'close' are called in sequence.
If 'validateId' returns false, a new session id will be generated, the session cookie will also be updated afterwards.
备份地址:http://www.lvesu.com/blog/php/sessionupdatetimestamphandlerinterface.validateid.php