The store will not work correctly when cookies are disabled.
- Home
- Blog
- 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');
December 6, 2021 | View: 143
Copyright © 2024 Tridhya Tech Limited, Inc. All rights reserved.