You get the error main.WARNING: Session size of … exceeded allowed session max size of … when adding items to an order in the Magento 2 admin area? There is an easy solution to that problem, just run the following…
Setting and getting session values (Magento 1)
Use the below code to set and get Magento session values:
1 2 3 4 5 6 |
// set value $value = 123; Mage::getSingleton('core/session')->setValue($value); // get value $value = Mage::getSingleton('core/session')->getValue(); |