I have to set some additional data to currently logged in customer session. I have tried setting up new data in following way, but it doesn't work.
if (Mage::getSingleton('customer/session')->isLoggedIn()): $customer = Mage::getSingleton('customer/session')->getCustomer(); $customer->setTest1("test1_value"); $customer->setTest2("test2_value); endif;
If I print the session right after I set new data to session,I can see the data, but when I refresh the page, the data (test1 and test2) disappears. Note: I can see other regular customer session data.
Please suggest how the session data can be set to customer data session. Looking forward, thank you in advance!