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
Links
Related
Session
- session_abort
- session_cache_expire
- session_cache_limiter
- session_commit
- session_create_id
- session_destroy
- session_encode
- session_gc
- session_get_cookie_params
- session_id
- session_module_name
- session_name
- session_regenerate_id
- session_register_shutdown
- session_reset
- session_save_path
- session_set_cookie_params
- session_set_save_handler
- session_start
- session_status
- session_unset
- session_write_close