Hey, we have all done it. Luckily Google has anticipated this forgetful behaviour and they have build into GMail a great way of making sure your account is safe and secure.
Stay safe and make sure you Sign Out when using public or shared computers(this also includes computers or laptops in school)!