objectify all the session management stuff

This commit is contained in:
redmatrix
2016-04-08 04:44:10 -07:00
parent 2db59f3b76
commit 9b66b5eee3
7 changed files with 181 additions and 12 deletions

View File

@@ -486,7 +486,7 @@ require_once('include/api_auth.php');
function api_account_logout(&$a, $type){
require_once('include/auth.php');
nuke_session();
\Zotlabs\Web\Session::nuke();
return api_apply_template("user", $type, array('$user' => null));
}