Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

session_decode

Description

The session_decode of Session for PHP decodes the session data from a session encoded string.

Syntax

session_decode(
    string $data
): bool

Parameters

data

The encoded data to be stored.

Return

Returns true on success or false on failure.

Examples

1 · data

<?

session_start();

$_SESSION["mykey1"] = "myvalue1";
$_SESSION["mykey2"] = "myvalue2";
$_SESSION["mykey3"] = "myvalue3";

$data = session_encode();

$return = session_decode($data);

var_export($return);

?>
true
HomeMenu