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