Only PhD students or 2nd level master students may apply for temporary stay permit which lasts for a period of 6 to 12 months maximum and allows students to legally live in Italy after their graduation  while searching for a job. Other students can stay only till their stay permit expires.