create an actual logout module instead of relying on internal variables

This commit is contained in:
zotlabs
2017-10-12 22:10:42 -07:00
parent e5f1bcacc8
commit 29a29f277e
2 changed files with 16 additions and 5 deletions

12
Zotlabs/Module/Logout.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
namespace Zotlabs\Module;
class Logout extends \Zotlabs\Web\Controller {
function init() {
\App::$session->nuke();
goaway(z_root());
}
}