What is PHPSESSID?

后端 未结 5 1187
遇见更好的自我
遇见更好的自我 2020-12-01 04:58

I\'m playing around with cookies. And I dont have any cookies called PHPSESSID.

Do i need it? Can i remove it?

Whats the \"function\" of it?

         


        
5条回答
  •  日久生厌
    2020-12-01 05:29

    PHP uses one of two methods to keep track of sessions. If cookies are enabled, like in your case, it uses them.

    If cookies are disabled, it uses the URL. Although this can be done securely, it's harder and it often, well, isn't. See, e.g., session fixation.

    Search for it, you will get lots of SEO advice. The conventional wisdom is that you should use the cookies, but php will keep track of the session either way.

提交回复
热议问题