X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/630144db19b9199b775902148309c90502d34f78..e7f73cf66d4c955fcaed5037e9a05ba254e82996:/lib/session_handler.inc.php 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) {