Django Check if Users are Logged In
You need to make sure their sessions expire after they log out.
Then you need to query the django session model and to see who's online you need to match the friend with the session in the django session model
sorry not much help code wise
To be clear, I'm not trying to check if the user is authenticated. On my app, I want users to be able to see whether other users they are friends with are currently logged in or not. Can someone point me in the right direction.