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

如何处理session过期? #520

Open
zxslzx opened this issue Nov 7, 2023 · 2 comments
Open

如何处理session过期? #520

zxslzx opened this issue Nov 7, 2023 · 2 comments
Labels

Comments

@zxslzx
Copy link

zxslzx commented Nov 7, 2023

我在拦截器里通过 request.getSession() 获取session, 但 session.isValid() 始终是true,查看源码发现 getSession 调用 findSession,在findSession里会刷新session,导致获取到的session一直都不会过期。另外对于保存在 andserver_session 下面的过期文件会在什么情况下清理?

@yanzhenjie
Copy link
Owner

这里似乎是有个bug,我改天修复一下。

@noThinkDie
Copy link

@yanzhenjie 大佬 这个问题你这边解决了吗?

@yanzhenjie yanzhenjie added the bug label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants