Hi … after many time
for add some data to customer session or another session you can do like this
1 2 3 4 5 6 7 8 9 10 |
protected $customerSession; public function __construct( \Magento\Customer\Model\Session $customerSession ){ $this->customerSession = $customerSession; } $this->customerSession->setMyValue('test'); $this->customerSession->getMyValue(); |