Session variables and cookies seem very similar to me. I understand the technical differences, but how do you decide when to use one vs. the other?
Cookies can persist longer than a single session. However, cookies may also be deleted by the user, or you may have a user whose browser does not accept cookies (in which case only a server-side session will work).