Symfony\Component\HttpFoundation\Session\Storage\MetadataBag
Metadata container.
Adds metadata to the session.
- Author: Drak <drak@zikula.org>
Synopsis
class MetadataBag
implements
SessionBagInterface
{
- // constants
- const CREATED = 'c';
- const UPDATED = 'u';
- const LIFETIME = 'l';
- // members
- private string $name;
- private string $storageKey;
- protected array $meta;
- private integer $lastUsed;
- // methods
- public void __construct()
- public void initialize()
- public integer getLifetime()
- public void stampNew()
- public void getStorageKey()
- public integer getCreated()
- public integer getLastUsed()
- public void clear()
- public void getName()
- public void setName()
- private void stampCreated()
Hierarchy
Constants
Name | Value |
---|---|
CREATED | 'c' |
UPDATED | 'u' |
LIFETIME | 'l' |
Members
private
- $lastUsed
—
integer
Unix timestamp. - $name — string
- $storageKey — string
protected
- $meta — array
Methods
private
public
- __construct() — Constructor.
- clear() — {@inheritdoc}
- getCreated() — Gets the created timestamp metadata.
- getLastUsed() — Gets the last used metadata.
- getLifetime() — Gets the lifetime that the session cookie was set with.
- getName() — {@inheritdoc}
- getStorageKey() — {@inheritdoc}
- initialize() — {@inheritdoc}
- setName() — Sets name.
- stampNew() — Stamps a new session's metadata.