LLMS_Session::get( string $key, mixed $default = false )
Retrieve a session variable.
Parameters Parameters
- $key
-
(string) (Required) The key of the session variable.
- $default
-
(mixed) (Optional) The default value to return if no session variable is found with the provided key. Default
false
.Default value: false
Return Return
(mixed)
Source Source
File: includes/class.llms.session.php
if ( empty( $value ) || ! is_string( $value ) ) { return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.7 | Added the $default parameter that represents the default value to return if the session variable requested doesn't exist. |
1.0.0 | Introduced. |