initial setup of framework code
[cacert-mgr.git] / manager / application / controllers / LogoutController.php
1 <?php
2 /**
3 * @author markus
4 * $Id: LogoutController.php 12 2009-11-24 13:35:16Z markus $
5 */
6
7 require_once('helpers/GetEnv.php');
8 require_once('config/Config.php');
9
10 class LogoutController extends Zend_Controller_Action
11 {
12
13 public function init() {
14 /* Initialize action controller here */
15 }
16
17 public function indexAction() {
18 $session = Zend_Registry::get('session');
19
20 Log::Log()->info(__METHOD__ . ' user logged out ' . $this->view->session->authdata['authed_username']);
21
22 unset($session->authdata);
23 $session->authdata['authed'] = false;
24
25 Zend_Session::destroy();
26 }
27 }