A Magistrate authorizing the detention of an accused person as above must record his reasons for doing so; and shall forward a copy of his order with his reasons for making it, to the Sessions Judge. (Section 167, sub-section (4) of the Code.) ...