Section 438 CrPC allows anticipatory bail applications to be made to either the Court of Session or the High Court. The Chief Judicial Magistrate lacks jurisdiction to grant anticipatory bail, as it involves a constitutional prerogative available only to higher courts.