61 Pa.C.S. § 4303
Upon receipt of the warrant, the secretary shall, until infliction of the death penalty or until lawful discharge from custody, keep the inmate in solitary confinement. During the confinement, no person shall be allowed to have access to the inmate without an order of the sentencing court, except the following: