Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param \Aura\Session\Session $session
  */
 public function __construct(Session $session)
 {
     $this->session = $session->getSegment('jamesdb\\Cart');
 }
Ejemplo n.º 3
0
 private function initSession()
 {
     $sessionFactory = new SessionFactory();
     $this->session = $sessionFactory->newInstance($_COOKIE);
     $this->sessionSegment = $this->session->getSegment(Config::$SESSION_SEGEMENT);
 }