array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.session-decode.php', 1 => 'session_decode', ), 'up' => array ( 0 => 'ref.session.php', 1 => 'Session Functions', ), 'prev' => array ( 0 => 'function.session-create-id.php', 1 => 'session_create_id', ), 'next' => array ( 0 => 'function.session-destroy.php', 1 => 'session_destroy', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/session/functions/session-decode.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
session_decode — Decodes session data from a session encoded string
session_decode() decodes the serialized session data provided in
$data
, and populates the $_SESSION superglobal
with the result.
By default, the unserialization method used is internal to PHP, and is not the same as unserialize(). The serialization method can be set using session.serialize_handler.
data
The encoded data to be stored.