0 votes
in PHP by
What is the difference between session and cookie in PHP?

1 Answer

0 votes
by
The main difference between session and cookie is that cookies are stored on user's computer in the text file format while sessions are stored on the server side.

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

Related questions

0 votes
asked Jun 6, 2020 in PHP by SakshiSharma
0 votes
asked Jun 4, 2020 in PHP by Robindeniel
...