I need to send an email notification of abandonment of the product in the cart to the customer after X minutes that he left the site without buying.
Does anyone know of any simple and effective way to verify that the user's login session is still active on the site?
Example: list all active sessions of the site, if the Y session is not active, send the abandonment email of the product X minutes after the client leaves the site.