Does a person have to take insulin forever?

People with diabetes type-2 and gestational diabetes have to take insulin for short-time duration. On the other hand, people with type-1 diabetes or kids having diabetes from birth will need insulin for a lifetime.