summaryrefslogtreecommitdiff
path: root/manager/application/controllers/LogoutController.php
blob: 83859d4df390837467c8ebf1b116025dfa11db71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
 * @author markus
 * $Id: LogoutController.php 12 2009-11-24 13:35:16Z markus $
 */

require_once('helpers/GetEnv.php');
require_once('config/Config.php');

class LogoutController extends Zend_Controller_Action
{

    public function init() {
        /* Initialize action controller here */
    }

    public function indexAction() {
    	$session = Zend_Registry::get('session');

    	Log::Log()->info(__METHOD__ . ' user logged out ' . $this->view->session->authdata['authed_username']);

    	unset($session->authdata);
    	$session->authdata['authed'] = false;

    	Zend_Session::destroy();
    }
}