SearchTable Of ContentsPrevious topicClass Phalcon\Session\Adapter\Files Next topicClass Phalcon\Session\Exception This Page |
Class Phalcon\Session\Bag¶implements Phalcon\DI\InjectionAwareInterface, Phalcon\Session\BagInterface This component helps to separate session data into “namespaces”. Working by this way you can easily create groups of session variables into the application <?php
$user = new Phalcon\Session\Bag();
$user->name = "Kimbra Johnson";
$user->age = 22;
Methods¶public __construct (unknown $name) Phalcon\Session\Bag constructor public setDI (Phalcon\DiInterface $dependencyInjector) Sets the DependencyInjector container public Phalcon\DiInterface getDI () Returns the DependencyInjector container public initialize () Initializes the session bag. This method must not be called directly, the class calls it when its internal data is accesed public destroy () Destroyes the session bag public __set (string $property, string $value) Setter of values public string __get (string $property) Getter of values public boolean __isset (string $property) Isset property |