Storage\MetadataBag (Component\HttpFoundation\Session)
Symfony\Component\HttpFoundation\Session\Storage\MetadataBag
class MetadataBag implements SessionBagInterface
Metadata container.
Adds metadata to the session.
Constants
CREATED | |
UPDATED | |
LIFETIME |
Methods
__construct(string $storageKey = '_sf2_meta', int $updateThreshold) Constructor. | ||
initialize(array $array) Initializes the Bag. | ||
int | getLifetime() Gets the lifetime that the session cookie was set with. | |
stampNew(int $lifetime = null) Stamps a new session's metadata. | ||
string | getStorageKey() Gets the storage key for this bag. | |
int | getCreated() Gets the created timestamp metadata. | |
int | getLastUsed() Gets the last used metadata. | |
mixed | clear() Clears out data from bag. | |
string | getName() Gets this bag's name. | |
setName(string $name) Sets name. |
Details
public __construct(string $storageKey = '_sf2_meta', int $updateThreshold)
Constructor.
public initialize(array $array)
Initializes the Bag.
public int getLifetime()
Gets the lifetime that the session cookie was set with.
public stampNew(int $lifetime = null)
Stamps a new session's metadata.
public string getStorageKey()
Gets the storage key for this bag.
public int getCreated()
Gets the created timestamp metadata.
public int getLastUsed()
Gets the last used metadata.
public mixed clear()
Clears out data from bag.
public string getName()
Gets this bag's name.
public setName(string $name)
Sets name.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.html