diff options
Diffstat (limited to 'api/index.php')
-rw-r--r-- | api/index.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/api/index.php b/api/index.php index 147157946..50703175b 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 && @@ -46,10 +48,11 @@ if ($_REQUEST["sid"]) { session_id($_REQUEST["sid"]); + @session_start(); + } else if (defined('_API_DEBUG_HTTP_ENABLED')) { + @session_start(); } - @session_start(); - if (!init_connection($link)) return; $method = strtolower($_REQUEST["op"]); |