I'm trying to study FOSUserBundle in Symfony. I searched on google "how to check if other users are logged into their account", but I failed to do it. I want to add a green coloured mark if a specific user is logged in, the way Facebook does it.
I don't know if FOSUserBundle has a code that will check whether a user is logged in. I found this (other question on SOF) but it only checks if the current user is logged in.
I don't know it's a good idea to add this property in my entity
/**
*
* @ORM\Column(name="log_status", type="boolean", nullable=true)
*/
protected $logStatus;
This will set the status of a user (logged in or not) and I'll add a column to the fos_user table to save it to the database.