Logging in stores a cookie on your computer containing your user ID and a code to confirm your identity.
This cookie is visible only to this website, and expires when you close your browser, or after 30 days if you check the 'Stay logged in on this computer' box.