]> git.datanom.net - qtadmin.git/commitdiff
finish log method
authorMichael Rasmussen <mir@datanom.net>
Sat, 6 Jun 2015 13:37:13 +0000 (15:37 +0200)
committerMichael Rasmussen <mir@datanom.net>
Sat, 6 Jun 2015 13:37:13 +0000 (15:37 +0200)
lib/session_handler.inc.php

index bd3a7710da0c08f40a2594741d753c58867e902b..0f02690e277f760b402485893cdda836523fa2b9 100644 (file)
@@ -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) {
This page took 0.06009 seconds and 5 git commands to generate.