From c0bdcfedeb8c5b8753587ac77d5b90d48698ec66 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Fri, 8 Apr 2016 05:10:36 -0700 Subject: log if the session handler fails and surface the ssl_cookie config setting --- Zotlabs/Web/Session.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Web/Session.php') 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(). -- cgit v1.2.3