Alaska Statutes
Chapter 35. Search and Seizure
Sec. 12.35.070. Search of defendant in presence of judge or magistrate.

When a person charged with a crime is believed by the judge or magistrate before whom that person is brought to have on the person a dangerous weapon, or anything that may be used as evidence of the commission of the crime, the judge or magistrate may direct the accused to be searched in the presence of the judge or magistrate, and the weapon or other thing be retained subject to the order of the judge or magistrate or the order of the court in which the defendant may be tried.