cacert-testmgr/manager/application/controllers/LogoutController.php

28 lines
631 B
PHP
Raw Normal View History

<?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() {
2015-08-09 17:12:51 +00:00
$session = Zend_Registry::get('session');
2015-08-09 17:12:51 +00:00
Log::Log()->info(__METHOD__ . ' user logged out ' . $this->view->session->authdata['authed_username']);
2015-08-09 17:12:51 +00:00
unset($session->authdata);
$session->authdata['authed'] = false;
2015-08-09 17:12:51 +00:00
Zend_Session::destroy();
}
}