SimpleSAML_AuthMemCookie::doLogout PHP Méthode

doLogout() private méthode

This function logs the user out by deleting the session information from memcache.
private doLogout ( )
    private function doLogout()
    {
        $cookieName = $this->getCookieName();
        // check if we have a valid cookie
        if (!array_key_exists($cookieName, $_COOKIE)) {
            return;
        }
        $sessionID = $_COOKIE[$cookieName];
        // delete the session from memcache
        $memcache = $this->getMemcache();
        $memcache->delete($sessionID);
        // delete the session cookie
        \SimpleSAML\Utils\HTTP::setCookie($cookieName, null);
    }