diff --git a/main/auth/sso/sso.Drupal.class.php b/main/auth/sso/sso.Drupal.class.php index 9cddb63cb7..80dd582a87 100755 --- a/main/auth/sso/sso.Drupal.class.php +++ b/main/auth/sso/sso.Drupal.class.php @@ -53,8 +53,11 @@ class ssoDrupal */ public function logout() { + // no_redirect means Drupal sent the signal to logout. When redirecting to Drupal, the $_GET['stop'] param is + // set to 1, to allow Drupal to know that this is it, the logout is already done in Chamilo and there's no + // need to do it again if (empty($_GET['no_redirect'])) { - header('Location: '.$this->deauth_url); + header('Location: '.$this->deauth_url.'&stop=1'); } else { header('Location: '.$this->protocol.$this->domain); }