aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-16 17:07:39 -0700
committerredmatrix <git@macgirvin.com>2016-05-16 17:07:39 -0700
commit2dcedd69519a40ca0f40bf7b8b86423e98c778c9 (patch)
treef1b7073db839da520319de458d7dc9280163aa62 /index.php
parentc8322e89c66703f111b40f8bc321d5ab32299da1 (diff)
downloadvolse-hubzilla-2dcedd69519a40ca0f40bf7b8b86423e98c778c9.tar.gz
volse-hubzilla-2dcedd69519a40ca0f40bf7b8b86423e98c778c9.tar.bz2
volse-hubzilla-2dcedd69519a40ca0f40bf7b8b86423e98c778c9.zip
more work on sessions and cookies, as some anomalies appeared in caldav and firefox which suggested deeper issues
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/index.php b/index.php
index 1178881ba..5d8dbd8bf 100755
--- a/index.php
+++ b/index.php
@@ -62,7 +62,8 @@ if(! App::$install) {
load_config('system');
load_config('feature');
- \Zotlabs\Web\Session::init();
+ App::$session = new \Zotlabs\Web\Session();
+ App::$session->init();
load_hooks();
call_hooks('init_1');
@@ -84,7 +85,13 @@ if(! App::$install) {
*
*/
-\Zotlabs\Web\Session::start();
+ if(App::$session) {
+ App::$session->start();
+ }
+ else {
+ session_start();
+ register_shutdown_function('session_write_close');
+ }
/**
* Language was set earlier, but we can over-ride it in the session.