6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6722] persistent_params not set or asked in conf.xml
*
Your Email Address
*
Spam protection
Enter the letters below:
. . __ . ,. . | |/ ` \./ | | |___\__|\__. | |__|
Comment
>>> 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 == '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; > >>> } > >> > >> Why do we need to define 'persistent_params' 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's just a temporary holding place to allow > >> us to pass driver information between classes. $driver is replaced > >> with 'memcache' and $params is replaced with the params needed for > >> the 'memcache' driver, so we need a way to make sure the original > >> values aren't blown away. > > > > Now when trying to understand this and get everything right, > shouldn't "$driver = 'memcache';" be set after setting the > "$persistent_params" array to which "$driver" is passed? When I read > the code above, then "memcache" is passed to this array, is this > intended? > > > > Sorry if this question is stupid, but I couldn't figure out something > else that causes my sessions not to be saved in the sql session table.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers