summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-28 09:48:14 +0400
committerAndrew Dolgov <[email protected]>2013-03-28 09:48:14 +0400
commit3f0094189c273e6e24bf61e6c24d129918cee14e (patch)
tree726ebad46739b07d046280905117e45c564815be /api
parent25db6c5191e9163cab573cb5f374a81902f3e11f (diff)
api: lower maximum lifetime of api sessions
Diffstat (limited to 'api')
-rw-r--r--api/index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/index.php b/api/index.php
index d248c4f85..a1143a1dc 100644
--- a/api/index.php
+++ b/api/index.php
@@ -17,6 +17,8 @@
require_once "functions.php";
require_once "sessions.php";
+ ini_set("session.gc_maxlifetime", 86400);
+
define('AUTH_DISABLE_OTP', true);
if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT &&