try again with shutdown handler, fix issue #373 (live-pubstream div wasn't present

This commit is contained in:
redmatrix
2016-05-10 01:30:22 -07:00
parent baa7020036
commit 0c5434d5e3
4 changed files with 17 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ class Session {
$handler = new \Zotlabs\Web\SessionHandler();
self::$handler = $handler;
$x = session_set_save_handler($handler,true);
$x = session_set_save_handler($handler,false);
if(! $x)
logger('Session save handler initialisation failed.',LOGGER_NORMAL,LOG_ERR);
@@ -46,6 +46,9 @@ class Session {
((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? true : false),
((isset($arr['httponly'])) ? $arr['httponly'] : true)
);
register_shutdown_function('session_write_close');
}
function start() {