Setting a session_lifetime of more than 300 seconds causes sessions to never tim…eout file listing pages. Ideally it should be possible to adjust the interval or disable the getstoragestats.php call in settings.
### Steps to reproduce
1. set session_lifetime to 600
2. login with a normal user account and leave the page on 'Files' view
3. wait for 600+ seconds without interacting with the browser
4. after 600+ seconds, interact with the owncloud page (navigate to a folder for instance)
### Expected behaviour
Session should have expired, page should redirect to the login page.
### Actual behaviour
Session remains active
### Server configuration
**Operating system**: Owncloud Server: Debian 8.5
**Web server:**: Apache 2.4
**Database:**: PostgreSQL 9.4.9
**PHP version:**: 5.6.24-0+deb8u1
**ownCloud version:** (see ownCloud admin page): ownCloud 9.0.4 (stable)
**Updated from an older ownCloud or fresh install:**: fresh install
**Where did you install ownCloud from:**: http://download.owncloud.org/download/repositories/9.0/Debian_8.0/ repository
**Signing status (ownCloud 9.0 and above):**: ? don't know where to find that.
```
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
No errors have been found.
```
**List of activated apps:**
Activity 2.2.1
Antivirus App for files 0.8.0.2
Collaborative tags 0.2
Comments 0.2
Default encryption module 1.2.0
Deleted files 0.8.0
Federation 0.0.4
Gallery 14.5.0
LDAP user and group backend 0.8.0
Mail Template Editor 0.1
PDF Viewer 0.8.1
Provisioning API 0.4.1
Share Files 0.9.1
Text Editor 2.1
Update notification 0.1.0
Versions 1.2.0
Video player 0.9.8
```
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder
```
**The content of config/config.php:**
```
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder
{
"system": {
"updatechecker": false,
"instanceid": "occf8dqb1q8n",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED***"
],
"datadirectory": "\/var\/www\/owncloud_data",
"overwrite.cli.url": "http:\/\/***REMOVED***",
"dbtype": "pgsql",
"version": "9.0.4.1",
"dbname": "owncloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"ldapIgnoreNamingRules": false,
"session_lifetime": 600,
"session_keepalive": false,
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.distributed": "\\OC\\Memcache\\Memcached",
"memcached_servers": [
[
"localhost",
11211
]
],
"mail_smtpmode": "smtp",
"mail_from_address": "xfs",
"mail_domain": "***REMOVED***",
"mail_smtphost": "127.0.0.1",
"mail_smtpport": "25",
"remember_login_cookie_lifetime": 600
},
"apps": {
"activity": {
"installed_version": "2.2.1",
"types": "filesystem",
"enabled": "yes"
},
"backgroundjob": {
"lastjob": "12"
},
"comments": {
"installed_version": "0.2",
"types": "logging",
"enabled": "yes"
},
"core": {
"installedat": "1473238174.6497",
"lastupdatedat": "1473238174.6573",
"remote_files": "dav\/appinfo\/v1\/webdav.php",
"remote_webdav": "dav\/appinfo\/v1\/webdav.php",
"remote_dav": "dav\/appinfo\/v2\/remote.php",
"remote_contacts": "dav\/appinfo\/v1\/carddav.php",
"remote_carddav": "dav\/appinfo\/v1\/carddav.php",
"remote_calendar": "dav\/appinfo\/v1\/caldav.php",
"remote_caldav": "dav\/appinfo\/v1\/caldav.php",
"public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
"public_files": "files_sharing\/public.php",
"oc.integritycheck.checker": "[]",
"default_encryption_module": "OC_DEFAULT_MODULE",
"encryption_enabled": "yes",
"shareapi_allow_links": "no",
"shareapi_allow_resharing": "no",
"shareapi_exclude_groups": "yes",
"shareapi_exclude_groups_list": "[\"SAPHIR_CRUD\",\"SAPHIR_RO\",\"XFS\"]",
"outgoing_server2server_share_enabled": "no",
"incoming_server2server_share_enabled": "no",
"backgroundjobs_mode": "cron",
"lastcron": "1473413402"
},
"dav": {
"installed_version": "0.1.6",
"types": "filesystem",
"enabled": "yes"
},
"encryption": {
"installed_version": "1.2.0",
"types": "filesystem",
"enabled": "yes",
"recoveryKeyId": "recoveryKey_4e7dbfda",
"publicShareKeyId": "pubShare_4e7dbfda",
"masterKeyId": "master_4e7dbfda",
"recoveryAdminEnabled": "1"
},
"federatedfilesharing": {
"installed_version": "0.1.0",
"types": "",
"enabled": "yes"
},
"federation": {
"installed_version": "0.0.4",
"types": "authentication",
"enabled": "yes"
},
"files": {
"installed_version": "1.4.4",
"types": "filesystem",
"enabled": "yes",
"cronjob_scan_files": "500",
"default_quota": "0 B"
},
"files_antivirus": {
"installed_version": "0.8.0.2",
"ocsid": "157439",
"types": "filesystem",
"enabled": "yes",
"av_path": "\/usr\/bin\/clamscan",
"av_mode": "socket",
"av_socket": "\/var\/run\/clamav\/clamd.ctl",
"av_host": "",
"av_port": "0",
"av_cmd_options": "",
"av_chunk_size": "1024",
"av_infected_action": "delete"
},
"files_pdfviewer": {
"installed_version": "0.8.1",
"ocsid": "166049",
"types": "",
"enabled": "yes"
},
"files_sharing": {
"installed_version": "0.9.1",
"types": "filesystem",
"enabled": "yes",
"outgoing_server2server_share_enabled": "no",
"incoming_server2server_share_enabled": "no"
},
"files_texteditor": {
"installed_version": "2.1",
"ocsid": "166051",
"types": "",
"enabled": "yes"
},
"files_trashbin": {
"installed_version": "0.8.0",
"types": "filesystem",
"enabled": "yes"
},
"files_versions": {
"installed_version": "1.2.0",
"types": "filesystem",
"enabled": "yes"
},
"files_videoplayer": {
"installed_version": "0.9.8",
"types": "",
"enabled": "yes"
},
"firstrunwizard": {
"installed_version": "1.1",
"ocsid": "166055",
"types": "",
"enabled": "no"
},
"gallery": {
"installed_version": "14.5.0",
"types": "",
"enabled": "yes"
},
"notifications": {
"installed_version": "0.2.3",
"types": "logging",
"enabled": "no"
},
"provisioning_api": {
"installed_version": "0.4.1",
"types": "prevent_group_restriction",
"enabled": "yes"
},
"systemtags": {
"installed_version": "0.2",
"types": "logging",
"enabled": "yes"
},
"templateeditor": {
"installed_version": "0.1",
"types": "",
"enabled": "yes"
},
"updatenotification": {
"installed_version": "0.1.0",
"types": "",
"enabled": "yes"
},
"user_ldap": {
***REMOVED***
}
}
}
```
**Are you using external storage, if yes which one:** local/smb/sftp/...: none
**Are you using encryption:** yes
**Are you using an external user-backend, if yes which one:** LDAP
#### LDAP configuration (delete this part if not used)
```
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
```
### Client configuration
**Browser:**" Safari, Chrome, Internet Explorer, Firefox
**Operating system:**: OSX, Windows 7, Windows 8.1
### Logs
#### Web server error log
```
Insert your webserver log here
172.16.101.1 - - [09/Sep/2016:11:00:44 +0200] "GET /index.php HTTP/1.1" 302 1195 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
172.16.101.1 - - [09/Sep/2016:11:00:44 +0200] "GET /index.php HTTP/1.1" 302 1195 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
172.16.101.1 - - [09/Sep/2016:11:00:44 +0200] "GET /index.php/apps/files/ HTTP/1.1" 200 5692 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
172.16.101.1 - - [09/Sep/2016:11:00:44 +0200] "GET /index.php/core/js/oc.js?v=3376a0fd58c48b373b8d549cd91212ff HTTP/1.1" 200 1944 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
172.16.101.1 - - [09/Sep/2016:11:00:45 +0200] "GET /index.php/apps/gallery/config?extramediatypes=1 HTTP/1.1" 200 1018 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
172.16.101.1 - - [09/Sep/2016:11:00:45 +0200] "GET /index.php/apps/encryption/ajax/getStatus HTTP/1.1" 200 1158 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
172.16.101.1 - - [09/Sep/2016:11:00:45 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 207 1542 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
172.16.101.1 - - [09/Sep/2016:11:00:45 +0200] "GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2F HTTP/1.1" 200 1163 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
172.16.101.1 - - [09/Sep/2016:11:05:45 +0200] "GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2F HTTP/1.1" 200 5707 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
172.16.101.1 - - [09/Sep/2016:11:10:45 +0200] "GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2F HTTP/1.1" 200 1301 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
```
#### ownCloud log (data/owncloud.log)
```
Insert your ownCloud log here
```
#### Browser log
```
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
```