Property | Type | Description | |
---|---|---|---|
$_session | Holds the array that corresponds to session keys & values. |
Method | Description | |
---|---|---|
check ( string $key, array $options = [] ) : Closure | Checks if a value has been set in the session. | |
clear ( array $options = [] ) : Closure | Clears all keys from the session. | |
delete ( string $key, array $options = [] ) : Closure | Delete value from the session | |
enabled ( ) : boolean | This adapter is always enabled, as it has no external dependencies. | |
isStarted ( ) : boolean | The memory adapter session is always "on". | |
key ( ) : string | Obtain the session key. | |
read ( null | string $key = null, array $options = [] ) : Closure | Read a value from the session. | |
write ( string $key, mixed $value, array $options = [] ) : Closure | Write a value to the session. |
public read ( null | string $key = null, array $options = [] ) : Closure | ||
$key | null | string | Key of the entry to be read. If no key is passed, all current session data is returned. |
$options | array | Options array. Not used for this adapter method. |
return | Closure | Function returning data in the session if successful, `false` otherwise. |
public write ( string $key, mixed $value, array $options = [] ) : Closure | ||
$key | string | Key of the item to be stored. |
$value | mixed | The value to be stored. |
$options | array | Options array. Not used for this adapter method. |
return | Closure | Function returning boolean `true` on successful write, `false` otherwise. |