Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

token session 过期时间bug #564

Open
ukhack opened this issue Jan 5, 2024 · 2 comments
Open

token session 过期时间bug #564

ukhack opened this issue Jan 5, 2024 · 2 comments

Comments

@ukhack
Copy link

ukhack commented Jan 5, 2024

使用版本:

1.37.0

涉及的功能模块:

token session

测试步骤:

  • 我经过以下步骤测试:
    SaLoginModel model = new SaLoginModel();
    model.setTimeout(604800).setActiveTimeout(604800);
    StpUtil.login(loginUser.getLoginId(), model.setExtra(USER_KEY, loginUser.getUserId()));
    执行后看redis,发现token session的缓存永远是2592000,即框架自带的默认值。

  • 得出以下结果:

跟其他回答中,说到的以最大的那个过期时间相同不符,如何处理这个问题。
目前没找到setSessionTimeout方法

@ukhack
Copy link
Author

ukhack commented Jan 10, 2024

目前在yml里面写死timeout数字解决问题,暂时解决不了app/pc端两种过期策略情况下的token session过期时间问题

@click33
Copy link
Collaborator

click33 commented May 10, 2024

1.38 版本将修复此问题,下周发布,敬请期待

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants