How to check if the customer is logged in or not via object manager ?

How to check if the customer is logged in or not via object manager ?

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$customerSession = $objectManager->get('Magento\Customer\Model\Session');



Copyright © 2024 Tridhya Tech Limited, Inc. All rights reserved.