java - 用Redis实现分布式Session失效时间问题
高洛峰
高洛峰 2017-04-18 10:45:56
0
2
664
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
刘奇

That’s true: “Every request will refresh the Session, making the Session’s destruction time the user’s last operation + 10 minutes”

伊谢尔伦

You can set the expiration time when setting the key in redis.
You just need to set the expiration time after 10 minutes every time you update the session.
The session will expire when the user accesses it ten minutes later, and the session will naturally become invalid.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!