public function takeAll($namespace = 'default')
    {
        if ($this->state !== static::STATE_ACTIVE && $this->state !== static::STATE_EXPIRED) {
            if ($this->debug) {
                throw new \RuntimeException('Session is not active.');
            }

            return false;
        }

        $bag = $this->getBag($namespace);
        $all = $bag->all();

        $this->clean($namespace);

        return $all;
    }