after customer login, I want to change some of the session params like customer name. I do like this
$this->_customerSession->getCustomer()->setName("ddddddd");
also i tried this
$this->_customerSession->setName("ddddddd");
but it does not work.so how I can change the customer basic data, also how Magento handles session data? I think after every request the Magento set session data from database...hmmm am I going wrong? is there anyone to talk about this?
I want to change the customer name and this change should be staying until the customer is login ...lets to review my problem ... I have a customer that can have sub customer (or may should I say, members) when a sub customer want to login with his/her username and password I check them and if they were correct I get parent customer and set it login but I want to replace parent name with sub customer