protected function cleanupSession(WebRequest $request)
    {
        $sessionToken = $request->getSessionData('userSessionToken');
        setcookie($sessionToken, 0, time() - 60, '/', '', $request->isSsl());
        
        $oldSessionToken = $request->getSessionData('oldUserSessionToken');
        if ($oldSessionToken != '') {
            setcookie($oldSessionToken, 0, time() - 60, '/', '', $request->isSsl());
        }
    
        $request->deleteSessionData('userUuid');
        $request->deleteSessionData('userSessionToken');
        $request->deleteSessionData('userSessionTokenLifetime');
        $request->deleteSessionData('oldUserSessionToken');
        $request->deleteSessionData('oldUserSessionTokenLifetime');
    }