(dis)advantages of sessions vs cookies
I need some details about sessions. What are the disadvantages of session variables? Between cookies and sessions, which one is better? I'm not going to touch on security here as Infotekka already went into it quite a bit. It seems like you are asking whether you should use a SESSION or COOKIE as if they are alternatives to one another. They are not. They server (this was a typo..but I'm leaving it cuz it's a nice pun) different purposes. As HTTP is stateless, PHP (and others) offer the ability to simulate a state machine in your application through the use of a Session. If you did not do this