private function isSessionValid($session)
    {
        $sessions = $this->getMeta()->sessions;
        $sessionTtl = $this->getSessionTtl();

        foreach ($sessions as $s) {
            if ($s['sid'] == $session && ($s['created'] + $sessionTtl) > time()) {
                return true;
            }
        }

        return false;
    }