Browse Source

api: lower maximum lifetime of api sessions

Andrew Dolgov 7 years ago
parent
commit
3f0094189c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      api/index.php

+ 2 - 0
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 &&