MetadataBag
setId(string $id) Sets the session ID. Parameters
bool migrate(bool $destroy = false, int $lifetime = null) Migrates the current session to a new
int count() Returns the number of attributes.
save() Force the session to be saved and closed. This method is generally not required for
SessionBagInterface
replace(array $attributes) Sets attributes.
mixed getName() Returns the session name.
string getStorageKey() Gets the storage key for this bag.
mixed remove(string $name) Removes an attribute.
Page 4 of 5