Tell me more ×
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It's 100% free, no registration required.

I need to store some data on Session during a call to Magento API, so I have overwritten Mage_Checkout_Model_Cart_Customer_Api and added this:

Mage::getSingleton('core/session')->setCustomVar('value');

The above code works fine on my local server but on Live server it is not storing anything on session (even If i just store a fix string )

Any idea ?

share|improve this question
If you do an immediate var_dump of $session->getData() what does it return on your live server? – philwinkle Apr 15 at 18:15
not easy to do what you ask because I'm doing it on the base of an API call. If i test it in a normal script (not API) it works also on server – Francesco Apr 15 at 18:18
Use Mage::log($session->getData()); and it should push it out to your system.log file – philwinkle Apr 15 at 19:58
Doing that, session is there but without my data – Francesco Apr 15 at 19:59

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.