public function storeValue($key, $value, $global = false)
    {
        if ($this->_enabled) {
            $namespace = $this->_getQueueNamespace($global);
            $session = AnService::get('com:sessions', array('namespace' => $namespace->namespace));

            $queue = $session->get($namespace->queue, new stdClass);
            $queue->$key = $value;

            if (! $global && $this->_mixer->flash) {
                $this->_mixer->flash->$key = $value;
            }

            $session->set($namespace->queue, $queue);
        }
    }
public function storeValue($key, $value, $global = false)
    {
        if ($this->_enabled) {
            $namespace = $this->_getQueueNamespace($global);
            $session = AnService::get('com:sessions', array('namespace' => $namespace->namespace));

            $queue = $session->get($namespace->queue, new stdClass);
            $queue->$key = $value;

            if (! $global && $this->_mixer->flash) {
                $this->_mixer->flash->$key = $value;
            }

            $session->set($namespace->queue, $queue);
        }
    }
public function storeValue ( $ key , $ value , $ global = false ) { if ( $ this -> _enabled ) { $ namespace = $ this -> _getQueueNamespace ( $ global ) ; $ session = AnService :: get ( 'com:sessions' , array ( 'namespace' => $ namespace -> namespace ) ) ; $ queue = $ session -> get ( $ namespace -> queue , new stdClass ) ; $ queue -> $ key = $ value ; if ( ! $ global && $ this -> _mixer -> flash ) { $ this -> _mixer -> flash -> $ key = $ value ; } $ session -> set ( $ namespace -> queue , $ queue ) ; } }
Stores a value in the session. This value is removed in the next
request.

@param string $key    Key to use to store the value
@param string $value  The value
@param bool   $global Global queue flag
Stores a value in the session . This value is removed in the next request .