SessionHandlerInterface::write
(PHP 5 >= 5.4.0, PHP 7, PHP 8)
SessionHandlerInterface::write — Write session data
Descrizione
PHP will call this method when the session is ready to be saved and closed. It encodes
the session data from the $_SESSION superglobal to a serialized string and passes this
along with the session ID to this method for storage. The serialization method used
is specified in the session.serialize_handler setting.
Note this method is normally called by PHP after the output buffers have been closed unless explicitly
called by session_write_close()
Elenco dei parametri
id
-
The session id.
data
-
The encoded session data. This data is the result of the PHP internally encoding the $_SESSION superglobal to a serialized
string and passing it as this parameter. Please note sessions use an alternative serialization method.
Valori restituiti
Il valore di ritorno (normalmente true
in caso di successo, altrimenti false
). Si noti che questo valore è restituito internamente a PHP per il processamento.