summaryrefslogtreecommitdiff
path: root/manager/application/controllers/LogoutController.php
diff options
context:
space:
mode:
Diffstat (limited to 'manager/application/controllers/LogoutController.php')
-rw-r--r--manager/application/controllers/LogoutController.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/manager/application/controllers/LogoutController.php b/manager/application/controllers/LogoutController.php
new file mode 100644
index 0000000..83859d4
--- /dev/null
+++ b/manager/application/controllers/LogoutController.php
@@ -0,0 +1,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();
+ }
+}