Skip to content

User status stay active after logout #14702

@emikolajczak

Description

@emikolajczak

Description:

Hi, in Rocket Chat is an issue. After user logout, it status is still active. I have checked on Mongo DB and I found that after logout "db.usersSessions.find({ _id: "user_id" }).pretty()" still return session, but in
"db.rocketchat_sessions.find({ sessionId: "session_id" }).pretty()" this session has "logoutAt" property set.
Strange is that when I refresh browser, session disappear from "usersSessions".
This issue cause that user status is incorrectly show and push masseges are not sending to mobile. Simillar issue when logout from Windows desktop app.

Steps to reproduce:

  1. Logout from rocket chat
  2. Check that session still exists is "usersSessions" collection
  3. Refresh browser
  4. Session disappear from "usersSessions"

Expected behavior:

Session disappear from "usersSessions" directly after logout

Actual behavior:

After logout user status is not changed.

Server Setup Information:

Version of Rocket.Chat Server: 1.0.3, 1.1.0
Operating System: Centos 7
Deployment Method: docker compose
Number of Running Instances: 9
DB Replicaset Oplog: yes
NodeJS Version: 8.11.4 - x64
MongoDB Version: 4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions