Is my understanding of PHP sessions correct?

后端 未结 3 396
广开言路
广开言路 2020-11-28 07:39

I\'ve been interested in how sessions work internally, but I have little knowledge of C (and am unsure where to look in the PHP source for this).

This is what I unde

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 08:20

    The session ID is probably just a random string of letters and numbers. Also it would be strange if PHP didn't check to see that it is unique and therefore cannot be the same for two users. As for (1) and (2), I'd say you're correct, but I haven't worked with PHP recently, so feel free not to believe me.

提交回复
热议问题