aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Logout.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module/Logout.php')
-rw-r--r--Zotlabs/Module/Logout.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Module/Logout.php b/Zotlabs/Module/Logout.php
index f06e7278b..d11ce54ac 100644
--- a/Zotlabs/Module/Logout.php
+++ b/Zotlabs/Module/Logout.php
@@ -5,7 +5,12 @@ namespace Zotlabs\Module;
class Logout extends \Zotlabs\Web\Controller {
function init() {
- \App::$session->nuke();
+ if($_SESSION['delegate'] && $_SESSION['delegate_push']) {
+ $_SESSION = $_SESSION['delegate_push'];
+ }
+ else {
+ \App::$session->nuke();
+ }
goaway(z_root());
}