1) use cookies/GET SIDs to only store session identifiers. don't store usernames/passwords here.
2) have cookies timeout when the browser is closed
3) i prefer one way hashes for passwords. for example, to store passwords i md5() the users password and a "secret" variable. i won't ever need to get the original password.