Tracking browser sessions

In this lesson, you are going to learn how to track users browser sessions by saving them in the database.

Browser sessions in AdonisJS

39mins
8 lessons
Intermediate

Browser sessions

In this lesson, you are going to learn how to track users browser sessions by saving them in the database.

In this lesson, we cover how to display users' browser sessions. You will also learn our to parse user agent.

In this lesson, we cover how to track when login sessions are last active at.

Now, let's look at how to log users out from specific browser sessions.

There are times users would want to log out from all but their current session. In this lesson, you'll learn how to do that.

In cases where users account might have been compromised, the users might want to reset their passwords and also log out from all existing sessions so as to kick the attacker out. In this lesson, you'll learn how to allow users to log out from all their login sessions.

In this lesson, you'll learn how to enforce only one login session for users.

To wrap up this course, let's fix a tiny bug in our application which has to do with session records not being deleted when the standard log out functionality is used.

Chimezie Enyinnaya

Hi, I'm Chimezie Enyinnaya, your teacher.

I’m a self-taught software developer based in Lagos, Nigeria, with over 8 years of experience. In the last couple of years, I've been doing more teaching because I enjoy sharing my knowledge so that others can benefit from it. Come along as I teach you all I know about AdonisJS, Node.js, and JavaScript at large!

Source code
Lesson video (SD)
Lesson video (HD)

No comments yet.