Here is more info on cookies and sessions,
http://en.wikipedia.org/wiki/HTTP_cookie
http://en.wikipedia.org/wiki/Session_(computer_science)
I think that pixelsoul's information on sessions will be reliable than mine, he is a talented fellow when it comes to php (compared to me... I am still a newb, for another 2 years).