Sign in
Log inSign up
How to implement 'find users who have not logged in last X days' in a web app?

How to implement 'find users who have not logged in last X days' in a web app?

Koh Wang's photo
Koh Wang
·Feb 5, 2016

I am building a simple Node.js based website. I would like to track users who have not initiated a session in a particular time span. I am using passport to create session and if a cookie is set I automatically log them in.

What is the best way to implement this?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct