You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cacert-testmgr/manager/application/controllers/LogoutController.php

28 lines
643 B
PHP

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