Auth Logout error


#1

When I add the following to my code:
$app->auth->logout();

I get this error:
Fatal error: Call to a member function logout() on null in /big/dom/xdonth/www/test/src/phase1.php on line 73

I’m lost!


#2

compare your code carefully with the examples and demos provided.

In your case it seems that $app->auth is not defined

so you need something like this: