SessionUpdateTimestampHandlerInterface::validateId

(PHP 7)

SessionUpdateTimestampHandlerInterface::validateIdValidate ID

Description

abstract public SessionUpdateTimestampHandlerInterface::validateId ( string $key ) : bool

Warning

This function is currently not documented; only its argument list is available.

Parameters

key

Return Values

Returns TRUE for valid ID, FALSE otherwise.

add a note add a note

User Contributed Notes 1 note

up
0
ohcc at 163 dot com
1 month 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.
To Top