<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>persistent_params not set or asked in conf.xml</title> 
  <pubDate>Fri, 10 Apr 2026 09:04:37 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6722</link> 
  <atom:link rel="self" type="application/rss+xml" title="persistent_params not set or asked in conf.xml" href="https://bugs.horde.org/ticket/6722/rss" /> 
  <description>persistent_params not set or asked in conf.xml</description> 
 
   
   
  <item> 
   <title>When using e.g. the sql session handler together with memcac</title> 
   <description>When using e.g. the sql session handler together with memcache conf.xml is not setting or asking for the persistent_params used in SessionHandler.php.



        if ($driver == &#039;memcached&#039;) {

            // Trap for old driver name.

            $driver = &#039;memcache&#039;;

        } elseif (($driver != &#039;memcache&#039;) &amp;&amp; !empty($params[&#039;memcache&#039;])) {

            $driver = &#039;memcache&#039;;

            unset($params[&#039;memcache&#039;]);

            $persistent_params = array(&#039;persistent_driver&#039; =&gt; $driver, &#039;persistent_params&#039; =&gt; $params);

            $params = null;

        }







This causes that the sessions are actually not stored in the sql database and therefore the are not persisted.</description> 
   <pubDate>Tue, 20 May 2008 07:40:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6722#t45396</link> 
  </item> 
   
  <item> 
   <title>&gt; When using e.g. the sql session handler together with memc</title> 
   <description>&gt; When using e.g. the sql session handler together with memcache 

&gt; conf.xml is not setting or asking for the persistent_params used in 

&gt; SessionHandler.php.

&gt;

&gt;         if ($driver == &#039;memcached&#039;) {

&gt;             // Trap for old driver name.

&gt;             $driver = &#039;memcache&#039;;

&gt;         } elseif (($driver != &#039;memcache&#039;) &amp;&amp; !empty($params[&#039;memcache&#039;])) {

&gt;             $driver = &#039;memcache&#039;;

&gt;             unset($params[&#039;memcache&#039;]);

&gt;             $persistent_params = array(&#039;persistent_driver&#039; =&gt; 

&gt; $driver, &#039;persistent_params&#039; =&gt; $params);

&gt;             $params = null;

&gt;         }



Why do we need to define &#039;persistent_params&#039; in conf.xml?  All this code is doing is saving the original params (for the persistent driver) so that the memcache driver can later pass these params on to the persistent driver.  It&#039;s just a temporary holding place to allow us to pass driver information between classes.  $driver is replaced with &#039;memcache&#039; and $params is replaced with the params needed for the &#039;memcache&#039; driver, so we need a way to make sure the original values aren&#039;t blown away.



Nowhere are we trying to load &#039;persistent_params&#039; from the conf.xml, and there is absolutely no reason we would ever want to.</description> 
   <pubDate>Tue, 20 May 2008 07:51:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6722#t45397</link> 
  </item> 
   
  <item> 
   <title>&gt; Why do we need to define &#039;persistent_params&#039; in conf.xml? </title> 
   <description>&gt; Why do we need to define &#039;persistent_params&#039; in conf.xml?  All this 

&gt; code is doing is saving the original params (for the persistent 

&gt; driver) so that the memcache driver can later pass these params on to 

&gt; the persistent driver.  It&#039;s just a temporary holding place to allow 

&gt; us to pass driver information between classes.  $driver is replaced 

&gt; with &#039;memcache&#039; and $params is replaced with the params needed for 

&gt; the &#039;memcache&#039; driver, so we need a way to make sure the original 

&gt; values aren&#039;t blown away.

&gt;

&gt; Nowhere are we trying to load &#039;persistent_params&#039; from the conf.xml, 

&gt; and there is absolutely no reason we would ever want to.



...ok thanks and sorry for the noise, I was definitely not awake :-)

</description> 
   <pubDate>Tue, 20 May 2008 08:16:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6722#t45401</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; When using e.g. the sql session handler together with mem</title> 
   <description>&gt;&gt; When using e.g. the sql session handler together with memcache

&gt;&gt; conf.xml is not setting or asking for the persistent_params used in

&gt;&gt; SessionHandler.php.

&gt;&gt;

&gt;&gt;         if ($driver == &#039;memcached&#039;) {

&gt;&gt;             // Trap for old driver name.

&gt;&gt;             $driver = &#039;memcache&#039;;

&gt;&gt;         } elseif (($driver != &#039;memcache&#039;) &amp;&amp; !empty($params[&#039;memcache&#039;])) {

&gt;&gt;             $driver = &#039;memcache&#039;;

&gt;&gt;             unset($params[&#039;memcache&#039;]);

&gt;&gt;             $persistent_params = array(&#039;persistent_driver&#039; =&gt;

&gt;&gt; $driver, &#039;persistent_params&#039; =&gt; $params);

&gt;&gt;             $params = null;

&gt;&gt;         }

&gt;

&gt; Why do we need to define &#039;persistent_params&#039; in conf.xml?  All this 

&gt; code is doing is saving the original params (for the persistent 

&gt; driver) so that the memcache driver can later pass these params on to 

&gt; the persistent driver.  It&#039;s just a temporary holding place to allow 

&gt; us to pass driver information between classes.  $driver is replaced 

&gt; with &#039;memcache&#039; and $params is replaced with the params needed for 

&gt; the &#039;memcache&#039; driver, so we need a way to make sure the original 

&gt; values aren&#039;t blown away.



Now when trying to understand this and get everything right, shouldn&#039;t &quot;$driver = &#039;memcache&#039;;&quot; be set after setting the &quot;$persistent_params&quot; array to which &quot;$driver&quot; is passed? When I read the code above, then &quot;memcache&quot; is passed to this array, is this intended?



Sorry if this question is stupid, but I couldn&#039;t figure out something else that causes my sessions not to be saved in the sql session table.</description> 
   <pubDate>Tue, 20 May 2008 12:05:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6722#t45404</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
