You use "long-lasting" to describe something of a long duration.
The gum has long-lasting flavor. The effects of the stirke will be long lasting.
Something that "lasts longer" simply goes on for longer than something else. We need to know what the other thing is and how long that lasted for it to make sense.