开发者

Session variable is not visible on another pages

Here is my problem: i have login page. Php code registe开发者_开发技巧red $_SESSION['id'] variable and on the login page all seems to be ok, but on another pages $_SESSION['id'] is not set. Used session_start(); at all pages.

Any ideas why?


You can use: Print_r ($_SESSION); to troubleshoot and see if it's really been set.

You can also post to self and make sure it's been set.

Check also if it's been unset at any moment in the code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜