I have an application which integrates with MyDBR on apache server. The thing is, that I want to logout from my application together with logging out from MyDBR. So I've prepared the following piece of code (in angular):
public callMyDbrLogoutUrl(path: string): any {
let xmlHttp = null;
xmlHttp = new XMLHttpRequest();
xmlHttp.open(
'GET',
'https://mydbr-app.com/tenant/logout.php',
false,
);
xmlHttp.onerror = function() {
return null;
};
xmlHttp.send();
return xmlHttp.responseText;
}
The function is called when the button 'Logout' on the app is pressed. I've tried to run the application together with MyDBR app on test environment. Unfortunately, after clicking logout button user wasn't logged out from MyDBR even if I observed on the developer tools that url 'https://mydbr-app.com/tenant/logout.php' was called. So that's why I am asking, is it possible to call logout.php programatically and if yes, than what I am missing?