I'm using php Session to store value on a server during an API call.
The issue here is that on my local server is working fine while on live server nothing is store in the session.
This is the work flow, basically I have an indipendent script calling Magento API :
[Script calling API ] -> [Magento Server]
On Magento side:
- the API is called
- API set some value in a session
- an observer try to read these value
The strange thing is that if I run my API call to on my local Magento server (copy of DEV), everything is fine while calling Magento DEV server, session var are empty.
This is how I'm setting the session value:
Mage::getSingleton('admin/session')->setApiQuoteId($quoteId);
However I'm quite sure code part is ok ( as it works fine here ) my doubt are:
- Can I use session with out using a browser but a script/API call to access server ?
- Any server setting can broke the above functionality ?
Local server: PHP - 5.4.6
Dev Server: PHP - 5.2.17
register_globalsin server configuration and make sure it is turned offregister_globalsis off on DEV server