1834.1. Zend\Session\Storage\SessionStorage
Session storage in $_SESSION
Replaces the $_SESSION superglobal with an ArrayObject that allows for
property access, metadata storage, locking, and immutability.
1834.1.1. Methods
1834.1.1.1. __construct
-
__construct()
Constructor
Sets the $_SESSION superglobal to an ArrayObject, maintaining previous
values if any discovered.
Parameters: |
- array|null –
- int –
- string –
|
1834.1.1.2. __destruct
-
__destruct()
Destructor
Resets $_SESSION superglobal to an array, by casting object using
getArrayCopy().
1834.1.1.3. fromArray
-
fromArray()
Load session object from an existing array
Ensures $_SESSION is set to an instance of the object when complete.
Parameters: | array – |
Return type: | SessionStorage |
1834.1.1.4. markImmutable
-
markImmutable()
Mark object as isImmutable
Return type: | SessionStorage |
1834.1.1.5. isImmutable
-
isImmutable()
Determine if this object is isImmutable