From e7f73cf66d4c955fcaed5037e9a05ba254e82996 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sat, 6 Jun 2015 15:37:13 +0200 Subject: [PATCH] finish log method --- lib/session_handler.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/session_handler.inc.php b/lib/session_handler.inc.php index bd3a771..0f02690 100644 --- a/lib/session_handler.inc.php +++ b/lib/session_handler.inc.php @@ -20,7 +20,10 @@ class FileSessionHandler { } function write($id, $data) { - return file_put_contents("$this->savePath/qt_sess_$id", $data) === false ? false : true; + $result = file_put_contents("$this->savePath/qt_sess_$id", $data); + chmod("$this->savePath/qt_sess_$id", 0600); + + return ($result === false) ? false : true; } function destroy($id) { -- 2.39.2