What is better sessions or cookies when making a log in ?

What is better sessions or cookies when making a log in ?
James
Connected to reality through a proxy server.
sessions FTW!
Sessions.
As they are barely exploitable.
I know cookies can be stopped to be exploitable, but overall i think sessions are better.
Safer, easier.
Because cookies can be easily exploited if you don't use them properly.
If you don't protect how your cookies are stored then people can gain access to your website using a javascript injection.
Well if a hacker manages to get onto the users computer they might be able to see their username and password
Then you encrypt passwords using an md5 hash then don't you
If it's a simple password then you can decrypt it.
Want to hide these adverts? Register an account for free!