Generic Imitrex is used for the treatment of migraine headaches with or without aura (eg, flashing lights, wavy lines, dark spots). An aura is a strange feeling or visual disturbance that warns you of an attack. It is not used to prevent migraines.
Generic Lioresal is used to treat and relieve spasms and cramping of muscles due to a variety of causes, including multiple sclerosis or brain or spinal cord injuries.