sessions are NOT cookies.
A cookie is a file that is stored in the client's browser and a session is a file that is stored on the server corresponding to a specific session id.
Both can contain data.
Sessions expire at a set lenght of time in the php.ini configuration.
Cookies can expire whenever you want them to.
Cookies don't have to be accepted by the user, so I use mainly sessions.