What is the difference between Sessions and Cookies in PHP?

前端 未结 8 1876
无人及你
无人及你 2020-11-28 04:51

What is the distinction between Sessions and Cookies in PHP?

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 05:19

    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)

提交回复
热议问题