-
Notifications
You must be signed in to change notification settings - Fork 13.5k
User status stay active after logout #14702
Description
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:
- Logout from rocket chat
- Check that session still exists is "usersSessions" collection
- Refresh browser
- 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