Cannot access the session array with php

后端 未结 3 1374
孤街浪徒
孤街浪徒 2020-12-11 23:13

I am working in a subfolder on my website: www.example.com/subfolder

Now, i want to set a session that is only accessible within www.example.com/subfolder

To

3条回答
  •  感动是毒
    2020-12-11 23:36

    _SESSION is superglobal. It is in global scope.

    So, you have probably forgot session_start();

提交回复
热议问题