aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Logout.php
blob: d11ce54ac2d3c906730ea40d4c89d657f909a1e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

namespace Zotlabs\Module;

class Logout extends \Zotlabs\Web\Controller {

	function init() {
		if($_SESSION['delegate'] && $_SESSION['delegate_push']) {
			$_SESSION = $_SESSION['delegate_push'];
		}
		else {	
			\App::$session->nuke();
		}
		goaway(z_root());

	}
}