Harsh Harsh - 11 months ago 63
PHP Question

What is the difference between Sessions and Cookies in PHP?

What is the distinction between Sessions and Cookies in PHP?

Answer Source

A cookie is a bit of data stored by the browser and sent to the server with every request.

A session is a collection of data stored on the server and associated with a given user (usually via a cookie containing an id code)