From the course: Redis Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Practical example: Building a session timeout feature

Practical example: Building a session timeout feature - Redis Tutorial

From the course: Redis Essential Training

Practical example: Building a session timeout feature

- [Instructor] To show you that behavior, let's think of a practical use case. Let's figure out how to build a session timeout feature for a web application just using Redis. Let's assume we have a web application and we want to make sure that the user's session ends after a certain time. The workflow will be on every request, we should check if the user is logged in. If they are, then we'll check if the session is still valid. Once the session expires, we need to remove the user login flat and we can do all of these with Redis.

Contents