New answers tagged

1 vote
Accepted

Getting Customer Session null from custom module in Magento 2

Add cacheable="false" in your xml <referenceContainer name="content"> <block class="Vendor\Modulename\Block\Customer" name="customer.session.data" ...
user avatar

Top 50 recent answers are included