session_write_close();
file_put_contents(__DIR__ . '/log/ok.' . $t . '.log', print_r($_SESSION, true));
file_put_contents(__DIR__ . '/log/xml.' . $t . '.log', $auth->getLastResponseXML());
+
+ if ($_POST['RelayState'] !== 'https://hosting.fluidbook.com/LVMH/Internal-Control-Base-December-2020/') {
+ header('Location: ' . $_POST['RelayState'], true);
+ exit;
+ }
+
} else {
file_put_contents(__DIR__ . '/log/err.' . $t . '.log', print_r($errors, true) . "\n\n--\n\n" . print_r($auth->getLastErrorReason(), true) . "\n\n--\n\n" . print_r($auth->getLastErrorException(), true));
}