/**
  * Invalidate the current session, clearing the login state with RealMe as well as any state within SilverStripe
  *
  * @param bool $redirect If true, Security::logout() will redirect the user back
  *
  * @todo At the moment we would always redirectBack(), do we want to support BackURL in these contexts?
  */
 private function realMeLogout($redirect = true)
 {
     $this->service->clearLogin();
     if ($redirect) {
         return $this->owner->logout($redirect);
     } else {
         return $this->owner->redirectBack();
     }
 }