Use store code instead of ID in cookie for consistency with Magento's own store cookie seting code.