__construct()
__destruct()
__get()
__isset()
__set()
__unset()
clear()
count()
fromArray()
getIterator()
getMetadata()
getRequestAccessTime()
init()
isImmutable()
isLocked()
lock()
markImmutable()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
serialize()
setMetadata()
toArray()
unlock()
unserialize()
setRequestAccessTime()
Session storage in $_SESSION
Replaces the $_SESSION superglobal with an ArrayObject that allows for property access, metadata storage, locking, and immutability.
__construct(array | null $input)
arraynull
__destruct() : void
__get(mixed $key) : mixed
mixed
mixed__isset(mixed $key) : bool
mixed
bool__set(mixed $key, mixed $value) : void
mixed
mixed
__unset(mixed $key) : void
mixed
clear(null | int | string $key) : \Zend\Session\Storage\ArrayStorage
count() : int
intfromArray(array $array) : \Zend\Session\Storage\SessionStorage
Ensures $_SESSION is set to an instance of the object when complete.
array
getMetadata(null | int | string $key) : mixed
Returns false if no metadata stored, or no metadata exists for the given key.
nullintstring
mixedgetRequestAccessTime() : float
floatinit(array $input) : void
array
isImmutable() : bool
boolisLocked(null | int | string $key) : bool
nullintstring
boollock(null | int | string $key) : \Zend\Session\Storage\ArrayStorage
markImmutable() : \Zend\Session\Storage\SessionStorage
offsetExists(mixed $key) : bool
mixed
booloffsetGet(mixed $key) : mixed
mixed
mixedoffsetSet(mixed $key, mixed $value) : void
mixed
mixed
offsetUnset(mixed $key) : void
mixed
serialize() : string
stringsetMetadata(string $key, mixed $value, bool $overwriteArray) : \Zend\Session\Storage\ArrayStorage
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.
string
mixed
boolWhether to overwrite or merge array values; by default, merges
\Zend\Session\Exception\RuntimeException |
|---|
toArray(bool $metaData) : array
boolWhether to include metadata
arrayunlock(null | int | string $key) : \Zend\Session\Storage\ArrayStorage
unserialize(string $session) : mixed
string
mixed