RocketChat / RocketChat/Rocket.Chat

Session ends before Accounts_LoginExpiration and also when screen saver comes on.

Open
#24,291 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

The user is being logged out before the expiration of the cookie sometimes,
could this be because of the Accounts_Default_User_Preferences_idleTimeLimit ?

I couldn't find in the code where the session is ended because of this setting tho

Steps to reproduce:

Login
2.
be idle and the window logs user out.

Expected behavior:

because the cookie doesn't expire for quite some time,
I would expect neither would the session.

Actual behavior:

after some time the session ends, despite their being lots of time left on the cookie.

Server Setup Information:
  • Version of Rocket.Chat Server: latest
  • Operating System: linux
  • Deployment Method: docker
  • Number of Running Instances: 1
Client Setup Information
  • Chrome
  • MAc

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by tracing how Accounts_LoginExpiration and Accounts_Default_User_Preferences_idleTimeLimit affect the session when the user is idle or the screen saver starts. Done means the session does not end before the configured expiration, with a regression test covering the reported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.