login-page

How to build login page using cookies ?

I'm looking for a short tutorial about creating a login page for a website using cookies. Each user has a username and a password. Should I save both the username and the password in the cookies ? or just the username may be enough ? Can a malicious user steal somehow these cookies and pass the authorization ? ...