1. A multi-terminal switch comprising: a source electrode; a drain electrode; a gate electrode; and an active region comprising at least one primary active region comprising at least one material for transporting and hosting ions that act as dopants to control the flow of electrons through the switch, and a secondary active region comprising at least one material for providing a source/sink of ionic dopants for said at least one primary active region, wherein the source electrode and drain electrode are physically connected to the primary active region and wherein the gate electrode is physically connected to the secondary active region.