SessionStorageService
This service class contains functions related to storing and reading data in the session.
All public functions are available in the Twig template renderer.
Deprecated!
since 5.0.0 will be removed in 6.0.0 |
Namespace
IO\Services
Type | Name | Description |
---|---|---|
|
||
|
Methods
public __construct($sessionStorage)
SessionStorageService constructor.
Type |
Name |
Description |
|
public setSessionValue($name, $value)
Deprecated!
since 5.0.0 will be removed in 6.0.0 |
Set the value in the session
Type |
Name |
Description |
|
Name/Key of the value |
|
|
The value to be stored |
public getSessionValue($name):mixed
Deprecated!
since 5.0.0 will be removed in 6.0.0 |
Get a value from the session
Type |
Name |
Description |
|
Name/Key of the value |
public getLang():string
Deprecated!
since 5.0.0 will be removed in 6.0.0 |
Get the language from session
public getCustomer():Customer
Deprecated!
since 5.0.0 will be removed in 6.0.0 |
Gets the model for the current customer from the session
Thank you for your feedback!