Another thing about using cookies is a big security issue. just typing: javascript
:alert(document.cookie) in the browser will display all the cookie info such a "username" and your probably saying to yourself, what does that matter. Well, if you put: javascript
:alert(document.cookie="username=admin") or some other username that is used. Then refresh your browser you will be logged into the username you specified. Where as with sessions if you type that, you will just get something like "PHPSESSID=4a7667sdy8as7sd9f7sa7795a76n3b0q21" . Hope this helped.
-LatE, Cody Wallis