|
Size: | 8752 |
Storage flags: | no_autoload,compress/gzip (32%) |
Zend\Session\Storage\ArrayStorage provides a facility to store all information in an ArrayObject. This storage method is likely incompatible with 3rd party libraries and all properties will be inaccessible through the $_SESSION property. Additionally ArrayStorage will not automatically repopulate the storage container in the case of each new request and would have to manually be re-populated.
A basic example is one like the following:
1 2 3 4 5 6 7 | use Zend\Session\Storage\ArrayStorage;
use Zend\Session\SessionManager;
$populateStorage = array('foo' => 'bar');
$storage = new ArrayStorage($populateStorage);
$manager = new SessionManager();
$manager->setStorage($storage);
|
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.