6.0.0-beta6
4/10/26

[#6720] session counting returns 0 sessions
Summary session counting returns 0 sessions
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester adrieder (at) sbox (dot) tugraz (dot) at
Created 5/19/08 (6535 days ago)
Due 05/19/2008 (6535 days ago)
Updated 5/20/08 (6534 days ago)
Assigned
Resolved 5/19/08 (6535 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/20/2008 08:18:43 AM adrieder (at) sbox (dot) tugraz (dot) at Comment #5 Reply to this comment

[Show Quoted Text - 16 lines]
forget this, sorry see http://bugs.horde.org/ticket/6722



But still I do not see any entry in the session table in the db... 
I'll continue to search for the cause :-)
05/20/2008 07:34:49 AM adrieder (at) sbox (dot) tugraz (dot) at Comment #4 Reply to this comment
Ok, I found the problem...



in SessionHandler.php there is:



         if ($driver == 'memcached') {

             // Trap for old driver name.

             $driver = 'memcache';

         } elseif (($driver != 'memcache') && !empty($params['memcache'])) {

             $driver = 'memcache';

             unset($params['memcache']);

             $persistent_params = array('persistent_driver' => 
$driver, 'persistent_params' => $params);

             $params = null;

         }



... but the persistent_params are not generated or asked by conf.xml.



I'll file a new bug.
05/19/2008 07:57:10 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #3 Reply to this comment
Fixed.
Thanks.

I still get "0", which is correct accourding to the 
"horde_sessionhandler" table. This is strange, should't the sessions 
be written into that table when using the following config:



$conf['sessionhandler']['params']['persistent'] = true;

$conf['sessionhandler']['params']['rowlocking'] = true;

$conf['sessionhandler']['params']['port'] = 3306;

$conf['sessionhandler']['params']['protocol'] = 'tcp';

$conf['sessionhandler']['params']['hostspec'] = 'XXX.XXX.3.24';

$conf['sessionhandler']['params']['username'] = 'horde';

$conf['sessionhandler']['params']['password'] = '****';

$conf['sessionhandler']['params']['database'] = 'horde';

$conf['sessionhandler']['params']['table'] = 'horde_sessionhandler';

$conf['sessionhandler']['type'] = 'mysql';

$conf['sessionhandler']['memcache'] = true;
05/19/2008 05:53:58 PM Michael Slusarz Comment #2
State ⇒ Resolved
Assigned to Michael Slusarz
Reply to this comment
Fixed.
05/19/2008 12:26:42 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ session counting returns 0 sessions
Due ⇒ 05/19/2008
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
When using the sql session handler together with memcache session 
caching the session counter just return 0 as numer of sessions.

Saved Queries