The main difference between session and cookie is that cookies are stored on a client computer in the text file format while sessions are stored on the server.

Cookies can’t hold multiple variables on the other hand Session can hold multiple variables.

You can manually set an expiry for a cookie, while the session only remains active as long as the browser is open. after the close, the browser session gets expired.

Changed status to publish