How to get/set session_id() or should it be generated automatically?

后端 未结 3 1892
生来不讨喜
生来不讨喜 2020-12-06 03:21

I have some basic session handling in my application. In each page I check if the user is logged in. If they are then they\'re already identified by $_SESSION[\'user_i

3条回答
  •  醉梦人生
    2020-12-06 03:43

    Well, it may be a little bit strange, but when I need unique ID I use uniqid()

提交回复
热议问题