autologin

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 ? ...

Is it possible to autologin to Google Apps without use SSO?

I want to login automatically without use the Single Sign On on Google Apps ...