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过期时间问题 #48

Open
zhangzhencoding opened this issue Nov 25, 2018 · 2 comments
Open

token过期时间问题 #48

zhangzhencoding opened this issue Nov 25, 2018 · 2 comments

Comments

@zhangzhencoding
Copy link

token存在cookie中过期时间30分钟,也就是用户登录成功30分钟后token会自动失效那么又要重新登陆了是不是有些烦,当然这个时间可以设置长一些哈哈,30分钟我觉得有点短了,建议2小时

@eysam
Copy link

eysam commented Nov 26, 2018

更好的做法应该是:token过期时间还是30min,但30min内用户有操作的话则更新token的过期时间以重新计时,这样子用户就不会用着用着又重新登录。

@a466350665
Copy link
Owner

现有就是有操作就以重新计时的方式

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

3 participants