In case of non-bailable offences, as per section 437 Cr.P.C and Section 439 Cr.P.C, the grant or refusal of the bail is a matter of discretion of the court which means bail can be granted by the court. Only condition is that it cannot be demanded as a right by the accused.
The section 437 Cr.P.C, 1973 lays out certain basic criteria for the court while exercising its judicial discretion for grant or refusal of the bail in case of non-bailable offences, some of the criteria are the nature of offence, past criminal record, the probability of guilt, etc.
439. Special powers of High Court or Court of Session regarding bail.
(1) A High Court or Court of Session may direct-
(a) that any person accused of an offence and in custody be released on bail, and if the offence is of the nature specified in subsection (3) of section 437, may impose any condition which it considers necessary for the purposes mentioned in that sub- section;
(b) that any condition imposed by a Magistrate when releasing an person on bail be set aside or modified: Provided that the High Court or the Court of Session shall, before granting bail to a person who is accused of an offence which is triable exclusively by the Court of Session or which, though not so triable, is punishable with imprisonment for life, give notice of the application for bail to the Public Prosecutor unless it is, for reasons to be recorded in writing, of opinion that it is not practicable to give such notice.
The sessions court is not empowered to take cognizance directly. It comes in to picture only after committal of case by the magistrate or after rejection of bail by the magistrate. thus there is no occasion to move to sessions court under s. 437. The application before session court can be filed under s. 439 after rejection of bail by the Magistrate u/s 437.