first checkin for ISAPI, the only part does not work for now is calculate the new bcookie