NativeSessionStorage::setMetadataBag()

setMetadataBag(MetadataBag $metaBag = null) Sets the MetadataBag. Parameters MetadataBag $metaBag

NativeSessionStorage::setId()

setId(string $id) Sets the session ID. Parameters string $id

NativeSessionStorage::save()

save() Force the session to be saved and closed. This method must invoke sessionwriteclose() unless this interface is used for a storage object design for unit or functional testing where a real PHP session would interfere with testing, in which case it should actually persist the session data if required. Exceptions RuntimeException If the session is saved without being started, or if the session is already closed.

NativeSessionStorage::registerBag()

registerBag(SessionBagInterface $bag) Registers a SessionBagInterface for use. Parameters SessionBagInterface $bag

NativeSessionStorage::regenerate()

bool regenerate(bool $destroy = false, int $lifetime = null) Regenerates id that represents this storage. This method must invoke sessionregenerateid($destroy) unless this interface is used for a storage object designed for unit or functional testing where a real PHP session would interfere with testing. Note regenerate+destroy should not clear the session data in memory only delete the session data from persistent storage. Care: When regenerating the session ID no locking is inv

NativeSessionStorage::isStarted()

bool isStarted() Checks if the session is started. Return Value bool True if started, false otherwise

NativeSessionStorage::getSaveHandler()

AbstractProxy getSaveHandler() Gets the save handler instance. Return Value AbstractProxy

NativeSessionStorage::getName()

mixed getName() Returns the session name. Return Value mixed The session name

NativeSessionStorage::getMetadataBag()

MetadataBag getMetadataBag() Gets the MetadataBag. Return Value MetadataBag

NativeSessionStorage::getId()

string getId() Returns the session ID. Return Value string The session ID or empty