Skip to content
Snippets Groups Projects
Commit 5fd8d155 authored by Bernhard Posselt's avatar Bernhard Posselt
Browse files

Merge pull request #1962 from owncloud/big_upload_fix

timeout after a longer time
parents fd654e9c 888e4f21
No related branches found
No related tags found
No related merge requests found
...@@ -340,13 +340,13 @@ class OC { ...@@ -340,13 +340,13 @@ class OC {
// regenerate session id periodically to avoid session fixation // regenerate session id periodically to avoid session fixation
if (!isset($_SESSION['SID_CREATED'])) { if (!isset($_SESSION['SID_CREATED'])) {
$_SESSION['SID_CREATED'] = time(); $_SESSION['SID_CREATED'] = time();
} else if (time() - $_SESSION['SID_CREATED'] > 900) { } else if (time() - $_SESSION['SID_CREATED'] > 60*60*12) {
session_regenerate_id(true); session_regenerate_id(true);
$_SESSION['SID_CREATED'] = time(); $_SESSION['SID_CREATED'] = time();
} }
// session timeout // session timeout
if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 3600)) { if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 60*60*24)) {
if (isset($_COOKIE[session_name()])) { if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time() - 42000, '/'); setcookie(session_name(), '', time() - 42000, '/');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment