[icinga-checkins] icinga.org: icinga-web/r1.8: Added memcache session provider (fixes #2035)

git at icinga.org git at icinga.org
Mon Jan 14 11:15:13 CET 2013


Module: icinga-web
Branch: r1.8
Commit: 31a8265b5d37ff1710e95f43a800bc270c436341
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=31a8265b5d37ff1710e95f43a800bc270c436341

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Mon Dec 17 17:46:17 2012 +0100

Added memcache session provider (fixes #2035)

---

 app/config/factories.xml.in                        |   10 +++++++++-
 app/modules/AppKit/config/autoload.xml             |    1 +
 .../storage/AppKitMemcacheSessionStorage.class.php |    1 +
 3 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/app/config/factories.xml.in b/app/config/factories.xml.in
index 15fa7a6..d5339e5 100644
--- a/app/config/factories.xml.in
+++ b/app/config/factories.xml.in
@@ -45,7 +45,15 @@
             <ae:parameter name="session_name">icinga-web</ae:parameter>
             <ae:parameter name="gzip_level">6</ae:parameter>
         </storage>
-        
+
+        <!--
+        <storage class="AppKitMemcacheSessionStorage">
+            <ae:parameter name="session_cookie_lifetime">0</ae:parameter>
+            <ae:parameter name="session_name">icinga-web</ae:parameter>
+            <ae:parameter name="host">localhost</ae:parameter>
+            <ae:parameter name="port">11211</ae:parameter>
+        </storage>
+        -->
         <translation_manager class="AppKitTranslationManager" />
         
         <user class="AppKitSecurityUser" />
diff --git a/app/modules/AppKit/config/autoload.xml b/app/modules/AppKit/config/autoload.xml
index 0187cd0..eb5240e 100644
--- a/app/modules/AppKit/config/autoload.xml
+++ b/app/modules/AppKit/config/autoload.xml
@@ -41,6 +41,7 @@
         <autoload name="AppKitDoctrineLoggerAppender">%core.module_dir%/AppKit/lib/logging/AppKitDoctrineLoggerAppender.class.php</autoload>
         <autoload name="AppKitApacheLoggerFormat">%core.module_dir%/AppKit/lib/logging/AppKitApacheLoggerFormat.class.php</autoload>
         <autoload name="AppKitExceptionHandler">%core.module_dir%/AppKit/lib/logging/AppKitExceptionHandler.class.php</autoload>
+        <autoload name="AppKitMemcacheSessionStorage">%core.module_dir%/AppKit/lib/storage/AppKitMemcacheSessionStorage.class.php</autoload>
         <autoload name="AppKitDoctrineSessionStorage">%core.module_dir%/AppKit/lib/storage/AppKitDoctrineSessionStorage.class.php</autoload>
         <autoload name="AppKitGettextTranslator">%core.module_dir%/AppKit/lib/translator/AppKitGettextTranslator.class.php</autoload>
         <autoload name="AppKitTranslationManager">%core.module_dir%/AppKit/lib/translator/AppKitTranslationManager.class.php</autoload>
diff --git a/app/modules/AppKit/lib/storage/AppKitMemcacheSessionStorage.class.php b/app/modules/AppKit/lib/storage/AppKitMemcacheSessionStorage.class.php
index 01f1bd9..23e3d74 100755
--- a/app/modules/AppKit/lib/storage/AppKitMemcacheSessionStorage.class.php
+++ b/app/modules/AppKit/lib/storage/AppKitMemcacheSessionStorage.class.php
@@ -29,6 +29,7 @@ class AppKitMemcacheSessionStorage extends AgaviSessionStorage {
     private $NsmSession = null;
     private $host = "localhost";
     private $port = 11211;
+    private $prefix;
 
     /**
      * @var Memcache





More information about the icinga-checkins mailing list