Session\Bag
Class Phalcon\Session\Bag
implements Phalcon\DI\InjectionAwareInterface, Phalcon\Session\BagInterface, IteratorAggregate, Traversable, ArrayAccess, Countable
This component helps to separate session data into “namespaces”. Working by this way you can easily create groups of session variables into the application
$user = new \Phalcon\Session\Bag('user'); $user->name = "Kimbra Johnson"; $user->age = 22;
Methods
public __construct (string $name)
Phalcon\Session\Bag constructor