Add a method to keep the Magento API session alive.