Skip to content

Idle Logout Doesn't Happen #6965

@ateam-adam

Description

@ateam-adam

Steps to reproduce

  1. Set session_lifetime to 600 seconds
  2. Set session_keepalive to false

Expected behaviour

The user is logged out after 10 minutes

Actual behaviour

The user is not logged out

I suspect this is because of the notifications API/AJAX stuff going on behind the scenes which is keeping the session alive but maybe this is being taken into account and the problem lies elsewhere.

Server configuration

Operating system: FreeBSD

Web server: Apache

Database: MySQL

PHP version: 7.1.10

Nextcloud version: 12.0.3

Updated from an older Nextcloud/ownCloud or fresh install: Fresh install

Where did you install Nextcloud from: Nextcloud.com

Signing status:

Signing status No errors have been found.

List of activated apps:

App list Enabled: - activity: 2.5.2 - admin_audit: 1.2.0 - bruteforcesettings: 1.0.2 - comments: 1.2.0 - dav: 1.3.0 - federatedfilesharing: 1.2.0 - federation: 1.2.0 - files: 1.7.2 - files_pdfviewer: 1.1.1 - files_sharing: 1.4.0 - files_texteditor: 2.4.1 - files_trashbin: 1.2.0 - files_versions: 1.5.0 - files_videoplayer: 1.1.0 - firstrunwizard: 2.1 - gallery: 17.0.0 - logreader: 2.0.0 - lookup_server_connector: 1.0.0 - nextcloud_announcements: 1.1 - notifications: 2.0.0 - oauth2: 1.0.5 - password_policy: 1.2.2 - provisioning_api: 1.2.0 - serverinfo: 1.2.0 - sharebymail: 1.2.0 - survey_client: 1.0.0 - systemtags: 1.2.0 - theming: 1.3.0 - twofactor_backupcodes: 1.1.1 - updatenotification: 1.2.0 - workflowengine: 1.2.0 Disabled: - encryption - files_external - impersonate - user_external - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "oc50olvbmzu4",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "files.xxxxxx.com"
        ],
        "datadirectory": "\/htwritable\/data",
        "overwrite.cli.url": "https:\/\/files.xxxxxxxxxxxxx.com",
        "htaccess.RewriteBase": "\/",
        "dbtype": "mysql",
        "version": "12.0.3.3",
        "dbname": "nextcloud",
        "dbhost": "127.0.0.1",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "files",
        "mail_domain": "files.xxxxxxxxxxx.com",
        "mail_smtphost": "127.0.0.1",
        "mail_smtpport": "25",
        "skeletondirectory": "\/htwritable\/skeleton",
        "session_lifetime": 600,
        "session_keepalive": false
    }
}

Are you using external storage, if yes which one: Local

Are you using encryption: No

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: Firefox and Chrome

Operating system: Windows 10

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
<empty>

Browser log

Browser log
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 413ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 508ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 324ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 332ms]
GET XHR https://files.xxxxxxxxxx.com/index.php/apps/files/ajax/getstoragestats.php [HTTP/1.1 200 OK 339ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 331ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 536ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 289ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 373ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 328ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 318ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 323ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 385ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 503ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 347ms]
GET XHR https://files.xxxxxxxxxx.com/index.php/apps/files/ajax/getstoragestats.php [HTTP/1.1 200 OK 331ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 318ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 329ms]
GET XHR https://files.xxxxxxxxxx.com/ocs/v2.php/apps/notifications/api/v2/notifications [HTTP/1.1 200 OK 312ms]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions