Following the example of Ali Nasrullah, I would do:
$session = Mage::getSingleton("core/session", array("name"=>"frontend")); // set data $session->setData("device_id", 4); // get data $myDeviceId = $session->getData("device_id");
Make sure you enable [Mage-root] /app/Mage.php to call the code above!
@Ali Nasrullah: pass the value of the device: id as the second parameter to the setData function.
NiBa Jan 27 '11 at 13:12 2011-01-27 13:12
source share