Cookie Logins

I was wondering, has anybody got any tips or tricks to make a secure login that uses cookies? :beer: