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

session_encode

Description

The session_encode of Session for PHP encodes the current session data as a session encoded string.

Syntax

session_encode(): string|false

Return

Returns the contents of the current session encoded, or false on failure.

Examples

1 · void

<?

session_start();

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

$return = session_encode();

echo $return;

?>
mykey1|s:8:"myvalue1";mykey2|s:8:"myvalue2";mykey3|s:8:"myvalue3";
HomeMenu