Session storage in $_SESSION
Replaces the $_SESSION superglobal with an ArrayObject that allows for property access, metadata storage, locking, and immutability.
Count
Return type: | int |
---|
Seralize
Return type: | string |
---|
Unserialize
Return type: | mixed |
---|
Load session object from an existing array
Ensures $_SESSION is set to an instance of the object when complete.
Parameters: | array – |
---|---|
Return type: | SessionStorage |
Lock this storage instance, or a key within it
Parameters: | null|int|string – |
---|---|
Return type: | ArrayStorage |
Is the object or key marked as locked?
Parameters: | null|int|string – |
---|---|
Return type: | bool |
Unlock an object or key marked as locked
Parameters: | null|int|string – |
---|---|
Return type: | ArrayStorage |
Set storage metadata
Metadata is used to store information about the data being stored in the object. Some example use cases include: - Setting expiry data - Maintaining access counts - localizing session storage - etc.
Parameters: |
|
---|---|
Return type: | ArrayStorage |
Throws : | ExceptionRuntimeException |
Retrieve metadata for the storage object or a specific metadata key
Returns false if no metadata stored, or no metadata exists for the given key.
Parameters: | null|int|string – |
---|---|
Return type: | mixed |
Clear the storage object or a subkey of the object
Parameters: | null|int|string – |
---|---|
Return type: | ArrayStorage |
Throws : | ExceptionRuntimeException |
Retrieve the request access time
Return type: | float |
---|