Disclaimer: I’m just starting out with auth0 and am not an experienced PHP developer.
I’m using the PHP example code that is shown in the application ‘Quickstart’ section for PHP as a template.
I’ve got a few authentication providers configured using auth0’s dev keys.
Login is working fine.
However, when I try to log out, it’s just not.
There’s no error, the user is redirected to the base URL (‘localhost:9999/’) and the user info is displayed again.
The logout url that is generated from the $auth0->logout(…) function is:
I did change the example by adding a cookieExpires parameter (7 days).
The logout code is this:
$logoutUrl = $auth0->logout(ROUTE_URL_INDEX);
header("Location: " . $logoutUrl); // $auth0->logout(ROUTE_URL_INDEX));
exit;
I’m 95% sure it’s something I’m doing … but have no idea what it is.
Any suggestions?
Thanks!
David