Skip to content

Magento2.4: How to check if a customer is offline/online in custom module?

I want to check if a customer is logged-In or logged-out on fronted store, and save that customer status in a custom table and that status update whenever a customer logged-In and logged-out in that table.

enter image description here