How to check if user session is active from back-end server?

FYI, a similar question was asked but not answered here: How to check if user session is active from Express API?