aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Module/Logout.php
blob: d11ce54ac2d3c906730ea40d4c89d657f909a1e5 (plain) (tree)
1
2
3
4
5
6
7






                                              





                                                                         


                                 
 
<?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());

	}
}