Version 0.10.1 always has login expiration issues. #6379

Closed
opened 2026-02-21 18:15:29 -05:00 by yindo · 1 comment
Owner

Originally created by @NirvanaProduct on GitHub (Oct 28, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.10.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After logging in, everything works fine. However, after the system is suspended for a while and I return, I find that I've been logged out and need to log in again. Additionally, any previously entered content is lost, which severely impacts the user experience.

✔️ Expected Behavior

Stay logged in

Actual Behavior

Log out

Originally created by @NirvanaProduct on GitHub (Oct 28, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.10.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce After logging in, everything works fine. However, after the system is suspended for a while and I return, I find that I've been logged out and need to log in again. Additionally, any previously entered content is lost, which severely impacts the user experience. ### ✔️ Expected Behavior Stay logged in ### ❌ Actual Behavior Log out
yindo added the 🐞 bug label 2026-02-21 18:15:29 -05:00
yindo closed this issue 2026-02-21 18:15:29 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 28, 2024):

To address the login expiration issues you're experiencing with Dify version 0.10.1, you can adjust the session duration by modifying the ACCESS_TOKEN_EXPIRE_MINUTES environment variable. This variable controls the expiration time of the access token in minutes. By increasing its value, you can extend the session duration and reduce the frequency of automatic logouts.

Here's how you can change it:

  1. Locate the .env file used in your Docker setup.
  2. Find the line that sets ACCESS_TOKEN_EXPIRE_MINUTES.
  3. Increase the value from the default 60 to a higher number that suits your needs.
# Access token expiration time in minutes
ACCESS_TOKEN_EXPIRE_MINUTES=60

Adjusting this setting should help maintain your session for a longer period, even after system suspensions [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 28, 2024): <!-- Answer --> To address the login expiration issues you're experiencing with Dify version 0.10.1, you can adjust the session duration by modifying the `ACCESS_TOKEN_EXPIRE_MINUTES` environment variable. This variable controls the expiration time of the access token in minutes. By increasing its value, you can extend the session duration and reduce the frequency of automatic logouts. Here's how you can change it: 1. Locate the `.env` file used in your Docker setup. 2. Find the line that sets `ACCESS_TOKEN_EXPIRE_MINUTES`. 3. Increase the value from the default `60` to a higher number that suits your needs. ```plaintext # Access token expiration time in minutes ACCESS_TOKEN_EXPIRE_MINUTES=60 ``` Adjusting this setting should help maintain your session for a longer period, even after system suspensions <sup>[[1]](https://github.com/langgenius/dify/blob/main/docker/.env.example)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6379