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:
Klaus Leithoff 2008-07-02 14:35:01 +00:00
parent 1c0607e633
commit d8111bfbe2

View File

@ -149,6 +149,11 @@ class Horde_SyncML_SyncMLHdr extends Horde_SyncML_ContentHandler {
// Remove any existing session since we'll be contructing a // Remove any existing session since we'll be contructing a
// custom session id. // custom session id.
session_destroy(); 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. // Reload the Horde SessionHandler if necessary.
Horde::setupSessionHandler(); Horde::setupSessionHandler();