while I am no expert,
I use sessions to retain data while the use in "on site"......so basically page to page data.............without using the URL.
if you wish to retain data while the user may close the browser, visit other sites, even switch the computer off, and remember the username and that they are logegd into a forum (eg phpbuilder) then use cookies.
that's my take on it.