diff options
author | redmatrix <git@macgirvin.com> | 2016-05-10 01:30:22 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-10 01:30:22 -0700 |
commit | 0c5434d5e35f13340df5bf5edd22c6d9e9e8379c (patch) | |
tree | e5f415574ecce32e370b916ccbe142caf6e83b6a /Zotlabs/Web | |
parent | baa7020036f4b6112a58a99d04af2f5287a8c815 (diff) | |
download | volse-hubzilla-0c5434d5e35f13340df5bf5edd22c6d9e9e8379c.tar.gz volse-hubzilla-0c5434d5e35f13340df5bf5edd22c6d9e9e8379c.tar.bz2 volse-hubzilla-0c5434d5e35f13340df5bf5edd22c6d9e9e8379c.zip |
try again with shutdown handler, fix issue #373 (live-pubstream div wasn't present
Diffstat (limited to 'Zotlabs/Web')
-rw-r--r-- | Zotlabs/Web/Session.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Web/Session.php b/Zotlabs/Web/Session.php index f998df396..e18ad38fb 100644 --- a/Zotlabs/Web/Session.php +++ b/Zotlabs/Web/Session.php @@ -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() { |