When you cosign for someone how long are you required to be their cosigner?

For the length of the contract you sign. If you cosign on a 3 yr loan, you are responsible for the debt for 3 years.