Cannabis is considered an annual – it completes its life cycle within a year. That being said, I remember a thread where somebody had a plant that had grown for a few years. Let me find it.
I’ve also seen people keep the stalk from a previous harvest, and re-grow. But yours are flowering. The plants will allow leaves to yellow and fall off in order to focus energy to the flowers. The flowers will then deteriorate and die when they’re way past their prime. As @Ron330 said – if you can trick them into going back to vegetative phase? But I don’t think that will be very easy and maybe impossible.
Good luck!