diff options
author | zotlabs <mike@macgirvin.com> | 2017-10-12 22:10:42 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-10-12 22:10:42 -0700 |
commit | 29a29f277e4280efe88e70b66e42ff97ca967db9 (patch) | |
tree | 5b2d7dfaa6cd1186ccc1b9f35ea08ae4feabea71 /Zotlabs/Module | |
parent | e5f1bcacc857561fb6edc580c2d9657a81fa0867 (diff) | |
download | volse-hubzilla-29a29f277e4280efe88e70b66e42ff97ca967db9.tar.gz volse-hubzilla-29a29f277e4280efe88e70b66e42ff97ca967db9.tar.bz2 volse-hubzilla-29a29f277e4280efe88e70b66e42ff97ca967db9.zip |
create an actual logout module instead of relying on internal variables
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Logout.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zotlabs/Module/Logout.php b/Zotlabs/Module/Logout.php new file mode 100644 index 000000000..6aa11d110 --- /dev/null +++ b/Zotlabs/Module/Logout.php @@ -0,0 +1,12 @@ +<?php + +namespace Zotlabs\Module; + +class Logout extends \Zotlabs\Web\Controller { + + function init() { + \App::$session->nuke(); + goaway(z_root()); + + } +}
\ No newline at end of file |