diff options
author | redmatrix <git@macgirvin.com> | 2016-04-08 05:10:36 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-08 05:10:36 -0700 |
commit | c0bdcfedeb8c5b8753587ac77d5b90d48698ec66 (patch) | |
tree | 94843305f78eddc482891f43926cd5fc4c7e2876 /Zotlabs | |
parent | 9b66b5eee37c1a3958d9ddccb9c1a06ac7ef49ce (diff) | |
download | volse-hubzilla-c0bdcfedeb8c5b8753587ac77d5b90d48698ec66.tar.gz volse-hubzilla-c0bdcfedeb8c5b8753587ac77d5b90d48698ec66.tar.bz2 volse-hubzilla-c0bdcfedeb8c5b8753587ac77d5b90d48698ec66.zip |
log if the session handler fails and surface the ssl_cookie config setting
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Web/Session.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Web/Session.php b/Zotlabs/Web/Session.php index ff0070d15..494c02b1d 100644 --- a/Zotlabs/Web/Session.php +++ b/Zotlabs/Web/Session.php @@ -27,7 +27,9 @@ class Session { $handler = new \Zotlabs\Web\SessionHandler(); - session_set_save_handler($handler,true); + $x = session_set_save_handler($handler,true); + if(! $x) + logger('Session save handler initialisation failed.',LOGGER_NORMAL,LOG_ERR); // Force cookies to be secure (https only) if this site is SSL enabled. // Must be done before session_start(). |