get( \Magento\Persistent\Model\Session::class ); $persistentSession->setCustomerId($customer->getId())->save();