Returns given session variable, or all of them, if no parameters given.
public read ( string | null $name = null ) : string | null | ||
$name | string | null | The name of the session variable (or a path as sent to Hash.extract) |
Результат | string | null | The value of the session variable, null if session not available, session not started, or provided name not found in the session. |