aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-10 17:42:32 -0700
committerredmatrix <git@macgirvin.com>2016-04-10 17:42:32 -0700
commit0fe495727429dea14e4876c74ceb03fb71b58c29 (patch)
treeefa8728a5ebfc4c2f8ebec300099042044744a0c
parente9f1bac062bc72f118c7633cf683b21a000d089e (diff)
downloadvolse-hubzilla-0fe495727429dea14e4876c74ceb03fb71b58c29.tar.gz
volse-hubzilla-0fe495727429dea14e4876c74ceb03fb71b58c29.tar.bz2
volse-hubzilla-0fe495727429dea14e4876c74ceb03fb71b58c29.zip
when setting the session handler as an object using the auto register shutdown flag, explicitly calling session_write_close() should no longer be required. It shouldn't cause any issues if it is called twice, but the session driver interface has been known to sometimes act in unexpected ways and there are lots of "subtleties" which can often be difficult to debug. The mentioned flag implies PHP 5.4 minimum but I believe we require that anyway.
-rwxr-xr-xboot.php1
-rwxr-xr-xindex.php1
2 files changed, 0 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index b6febde4e..40c49df82 100755
--- a/boot.php
+++ b/boot.php
@@ -1616,7 +1616,6 @@ function login($register = false, $form_id = 'main-login', $hiddens=false) {
* @brief Used to end the current process, after saving session state.
*/
function killme() {
- session_write_close();
exit;
}
diff --git a/index.php b/index.php
index 60760539c..025d84063 100755
--- a/index.php
+++ b/index.php
@@ -190,5 +190,4 @@ call_hooks('page_end', App::$page['content']);
construct_page($a);
-session_write_close();
exit;