Hi @maicol07 , testing the logout function but not able to get rid of flarum_session at all.
Installed flarum in http://www.mydomain.com/application/forum folder, creating new object:
$flarum = new \Maicol07\SSO\Flarum('http://www.mydomain.com/application/forum', 'www.mydomain.com', api_token, password_token,14, true);
and then $flarum->logout();
Settings:
/* @var \Flagrow\Flarum\Api\Flarum Api client */
private $api = api_token;
/* @var Cookie */
private $cookie;
/* @var int How many days should the login be valid */
private $lifetime = 14;
/* @var string Random token to create passwords */
private $password_token = password_token;
/* @var string Main site or SSO system domain */
private $root_domain = 'www.mydomain.com';
/* @var bool Set groups also for admins */
private $set_groups_admins;
/* @var string Flarum URL */
private $url = 'http://www.mydomain.com/application/forum';
still cannot get rid of that bloody Cookie and logout user from website side.
Login works perfectly.