How to access cookie values on different paths of the same domain using PHP?

后端 未结 5 967
暖寄归人
暖寄归人 2020-12-11 16:34

Can a parameter of path be added to $_COOKIE[]?

5条回答
  •  离开以前
    2020-12-11 17:12

    In case you are trying to access cookies set for a different path on the same domain than the current, that can't be done. The browser itself restricts this, and only sends the cookies appropriate for the current path.

提交回复
热议问题