__construct()
destroy()
expireSessionCookie()
forgetMe()
getConfig()
getId()
getName()
getSaveHandler()
getStorage()
getValidatorChain()
isValid()
regenerateId()
rememberMe()
sessionExists()
setConfig()
setId()
setName()
setSaveHandler()
setStorage()
setValidatorChain()
start()
writeClose()
registerSaveHandler()
setSessionCookieLifetime()
$config
$defaultConfigClass
$defaultDestroyOptions
$defaultStorageClass
$name
$saveHandler
$storage
$validatorChain
Session ManagerInterface implementation utilizing ext/session
Defines common constructor logic and getters for Storage and Configuration
__construct(\Zend\Session\Config\ConfigInterface $config, \Zend\Session\Storage\StorageInterface $storage, \Zend\Session\SaveHandler\SaveHandlerInterface $saveHandler)
\Zend\Session\Config\ConfigInterfacenull
\Zend\Session\Storage\StorageInterfacenull
\Zend\Session\SaveHandler\SaveHandlerInterfacenull
\Zend\Session\Exception\RuntimeException |
---|
destroy(array $options) : void
array
See {@link $defaultDestroyOptions}
expireSessionCookie() : void
Sends a session cookie with no value, and with an expiry in the past.
getConfig() : \Zend\Session\Config\ConfigInterface
inherited_from | \Zend\Session\AbstractManager::getConfig() |
---|
getSaveHandler() : \Zend\Session\SaveHandler\SaveHandlerInterface
inherited_from | \Zend\Session\AbstractManager::getSaveHandler() |
---|
getStorage() : \Zend\Session\Storage\StorageInterface
inherited_from | \Zend\Session\AbstractManager::getStorage() |
---|
getValidatorChain() : \Zend\EventManager\EventManagerInterface
isValid() : bool
Notifies the Validator Chain until either all validators have returned true or one has failed.
bool
regenerateId(bool $deleteOldSession) : \Zend\Session\SessionManager
Regenerate the session ID, using session save handler's native ID generation Can safely be called in the middle of a session.
bool
rememberMe(null | int $ttl) : \Zend\Session\SessionManager
Can safely be called in the middle of a session.
nullint
sessionExists() : bool
bool
setConfig(\Zend\Session\Config\ConfigInterface $config) : \Zend\Session\AbstractManager
inherited_from | \Zend\Session\AbstractManager::setConfig() |
---|
setId(string $id) : \Zend\Session\SessionManager
Can safely be called in the middle of a session.
string
setName(string $name) : \Zend\Session\SessionManager
If the session has already been started, or if the name provided fails validation, an exception will be raised.
string
\Zend\Session\Exception\InvalidArgumentException |
---|
setSaveHandler(\Zend\Session\SaveHandler\SaveHandlerInterface $saveHandler) : \Zend\Session\AbstractManager
inherited_from | \Zend\Session\AbstractManager::setSaveHandler() |
---|
\Zend\Session\SaveHandler\SaveHandlerInterface
setStorage(\Zend\Session\Storage\StorageInterface $storage) : \Zend\Session\AbstractManager
inherited_from | \Zend\Session\AbstractManager::setStorage() |
---|
setValidatorChain(\Zend\EventManager\EventManagerInterface $chain) : \Zend\Session\SessionManager
start(bool $preserveStorage) : void
if No session currently exists, attempt to start it. Calls isValid() once session_start() is called, and raises an exception if validation fails.
bool
If set to true, current session storage will not be overwritten by the contents of $_SESSION.
\Zend\Session\Exception\RuntimeException |
---|
writeClose() : void
Once done, the Storage object will be marked as isImmutable.
registerSaveHandler(\Zend\Session\SaveHandler\SaveHandlerInterface $saveHandler) : bool
Since ext/session is coupled to this particular session manager register the save handler with ext/session.
\Zend\Session\SaveHandler\SaveHandlerInterface
bool
setSessionCookieLifetime(int $ttl) : void
If a session already exists, destroys it (without sending an expiration cookie), regenerates the session ID, and restarts the session.
int
$config : \Zend\Session\Config\ConfigInterface
inherited_from | \Zend\Session\AbstractManager::$$config |
---|
$defaultConfigClass : string
inherited_from | \Zend\Session\AbstractManager::$$defaultConfigClass |
---|
$defaultDestroyOptions : array
$defaultStorageClass : string
inherited_from | \Zend\Session\AbstractManager::$$defaultStorageClass |
---|
$name : string
$saveHandler : \Zend\Session\SaveHandler\SaveHandlerInterface
inherited_from | \Zend\Session\AbstractManager::$$saveHandler |
---|
$storage : \Zend\Session\Storage\StorageInterface
inherited_from | \Zend\Session\AbstractManager::$$storage |
---|
$validatorChain : \Zend\EventManager\EventManagerInterface