Students must have a valid study permit to stay in Canada.  If in this case your study permit expires before the completion of your studies (programme), you need to apply for an extension of your study permit.  Ideally, you should apply at least 30 days before your current permit expires.  Candidates can submit their applications by mail or online.