Temporary magnets: Magnets which exhibit their magnetic properties only in the presence of a magnetising field (or current) are called temporary magnets.
For example, a soft iron core behaves as a magnet as long as the current passes through the solenoid. Therefore, it is a temporary magnet.
Permanent magnets: Magnets which retain their magnetism even after the magnetising field (or current) has been removed are called permanent magnets.
For example, even when the electric current through the solenoid is switched off, steel core remains a magnet.