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.
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.