public function get($name = null, $default = null)
    {
        $context = $this->_context;

        if (!$context->started) {
            $this->_start();
        }

        if ($name === null) {
            return $context->_SESSION;
        } elseif (isset($context->_SESSION[$name])) {
            return $context->_SESSION[$name];
        } else {
            return $default;
        }
    }
public function get($name = null, $default = null)
    {
        $context = $this->_context;

        if (!$context->started) {
            $this->_start();
        }

        if ($name === null) {
            return $context->_SESSION;
        } elseif (isset($context->_SESSION[$name])) {
            return $context->_SESSION[$name];
        } else {
            return $default;
        }
    }
public function get ( $ name = null , $ default = null ) { $ context = $ this -> _context ; if ( ! $ context -> started ) { $ this -> _start ( ) ; } if ( $ name === null ) { return $ context -> _SESSION ; } elseif ( isset ( $ context -> _SESSION [ $ name ] ) ) { return $ context -> _SESSION [ $ name ] ; } else { return $ default ; } }
Gets a session variable from an application context

@param string $name
@param mixed  $default

@return mixed
Gets a session variable from an application context