forked from extern/egroupware
fixing a problem regarding the custom sessionhandler memcache:
we need to (re-)load our custom memcache session handler, as session_destroy unloads it somehow.
This commit is contained in:
parent
1c0607e633
commit
d8111bfbe2
@ -149,6 +149,11 @@ class Horde_SyncML_SyncMLHdr extends Horde_SyncML_ContentHandler {
|
||||
// Remove any existing session since we'll be contructing a
|
||||
// custom session id.
|
||||
session_destroy();
|
||||
// we need to (re-)load our custom memcache session handler, as session_destroy unloads it somehow
|
||||
if (extension_loaded('memcache') && ini_get('session.save_handler') == 'user')
|
||||
{
|
||||
session_set_save_handler("egw_memcache_open", "egw_memcache_close", "egw_memcache_read", "egw_memcache_write", "egw_memcache_destroy", "egw_memcache_gc");
|
||||
}
|
||||
|
||||
// Reload the Horde SessionHandler if necessary.
|
||||
Horde::setupSessionHandler();
|
||||
|
Loading…
Reference in New Issue
Block a user