Great Extension ! thanks a lot. The only thing not working for me is the logout. The logout integration following the sample_website example successfully removes the "flarum_remember" which it great, however my user in flarum is still logged in. Everything is working fine cause I can see the "flarum_remember" cookie removed, however I still see a "flarum_session" cookie living in the flarum subdomain. Do I need to also remove this "flarum_session" in order to have the user completely logged out ?
I tried these modifications adding a new variable in the config, but still no luck, user is still logged in in flarum.
public function logout()
{
$this->removeRememberMeCookie();
$this->setCookie('flarum_session', '', time() - 10);
}
private function setCookie($key, $token, $time)
{
setcookie($key, $token, $time, '/', $this->config['root_domain']);
setcookie($key, $token, $time, '/', $this->config['forum_subdomain']);
}
Thanks for any help provided !