How do PHP sessions work when cookies are disabled?

后端 未结 3 1484
忘了有多久
忘了有多久 2020-12-14 19:12

I\'ve tried to research this mechanism but only find hints and these are not very consistent. How is the session _id sent to the browser and how is the browser instructed to

3条回答
  •  被撕碎了的回忆
    2020-12-14 19:48

    Sessions work by creating a unique id (UID) for each visitor and store variables based on this UID. The UID is either (1) stored in a cookie or (2) is propagated in the URL.

提交回复
热议问题