This is how to force or change magento store_id into the session
1 2 3 | // Start store emulation process $appEmulation = Mage::getSingleton( 'core/app_emulation' ); $initialEnvironmentInfo = $appEmulation ->startEnvironmentEmulation( $storeId ); |