Package Home

Zend Framework 2 Documentation (Manual)

PHK Home

File: /_sources/modules/zend.session.storage.txt

Size:912
Storage flags:no_autoload,compress/gzip (45%)

.. _zend.session.storage:

Session Storage
===============

Zend Framework comes with a standard set of storage classes which are ready for you to use.  Storage handlers is
the intermediary between when the session starts and when the session writes and closes.  The default session storage
is ``Zend\Session\Storage\SessionArrayStorage``.

.. include:: zend.session.storage.array-storage.rst
.. include:: zend.session.storage.session-storage.rst
.. include:: zend.session.storage.session-array-storage.rst

.. _zend.session.storage.custom-storage:

Custom Storage
--------------

In the event that you prefer a different type of storage; to create a new custom storage container, you *must* implement
``Zend\Session\Storage\StorageInterface`` which is mostly in implementing ArrayAccess, Traversable, Serializable and
Countable.  StorageInterface defines some additional functionality that must be implemented.

For more information about the PHK package format: http://phk.tekwire.net