[Tickets #11573] Re: Horde-active-sessions does not work
noreply at bugs.horde.org
noreply at bugs.horde.org
Tue Apr 23 13:35:49 UTC 2013
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/11573
------------------------------------------------------------------------------
Ticket | 11573
Updated By | manuel at mausz.at
Summary | Horde-active-sessions does not work
Queue | Horde Base
Version | Git master
Type | Bug
State | No Feedback
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
manuel at mausz.at (2013-04-23 13:35) wrote:
I hope my comment will reopen the issue.
I've tried to debug this and I think this never worked (at least with
PHP 5.4):
* cli access creates the horde session with setup(start=false, ...).
Thus session_start() will never be called, so there's no session and
the $GLOBALS['session']->_data property is just a reference to a
"normal" array.
* as there's no valid session, Horde/Core/Factory/SessionHandler.php
will call session_start() (in the stub branch) which in turn will
convert the reference into a normal array (I've no idea what php is
doing here in it's internals). But I guess this is the reason for the
additional assignment of $this->_data = &$_SESSION after calling
session_start() in Horde_Session::_start(...).
* since the connection between $_SESSION and
$GLOBALS['session']->_data is lost, all calls of
$GLOBALS['session']->get(...) will be non sense and the function will
return false
* this is working in hordes frontend because the other branch will be
used ($new_sess = false)
More information about the bugs
mailing list