Non-Persistent Authentication Storage

Since HTTP Authentication happens again on each request, this will always be re-populated. So there's no need to use sessions, this simple value class will hold the data for rest of the current request.

package Default

 Methods

Clears contents from storage

clear() : void
inherited_from \Zend\Authentication\Storage\StorageInterface::clear()

Returns true if and only if storage is empty

isEmpty() : boolean
inherited_from \Zend\Authentication\Storage\StorageInterface::isEmpty()

Returns

boolean

Returns the contents of storage Behavior is undefined when storage is empty.

read() : mixed

Behavior is undefined when storage is empty.

inherited_from \Zend\Authentication\Storage\StorageInterface::read()

Returns

mixed

Writes $contents to storage

write(mixed $contents) : void
inherited_from \Zend\Authentication\Storage\StorageInterface::write()

Parameters

$contents

mixed

 Properties

 

Holds the actual auth data

$data 

Default