/** * Set a property in the session bucket * * @param string $key The key * @param mixed $value The value * * @return void */ public function set($key, $value) { $this->session->getSegment('Joomla')->set($key, $value); }
/** * Constructor. * * @param \Aura\Session\Session $session */ public function __construct(Session $session) { $this->session = $session->getSegment('jamesdb\\Cart'); }
private function initSession() { $sessionFactory = new SessionFactory(); $this->session = $sessionFactory->newInstance($_COOKIE); $this->sessionSegment = $this->session->getSegment(Config::$SESSION_SEGEMENT); }