Undefined variable: _SESSION when sending variables via post through JavaScript trigger

前端 未结 8 510
执念已碎
执念已碎 2020-12-14 15:49

In my index.php file I call session_start() and set a couple of session variables. In a second PHP file I would like to access these session variables.

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 16:13

    I came faced with this problem, and after trying a lot of things, I just included session_start() on the second script and it worked.

提交回复
热议问题