PHP session empty

后端 未结 4 626
半阙折子戏
半阙折子戏 2020-12-07 06:12

I made a simple login function in PHP. My problem is that there are no session attributes when the browser hits page login_success.php

After i store

4条回答
  •  生来不讨喜
    2020-12-07 06:20

    Apart from using session_start(), there can be a couple of other reasons as well:

    1. Disk space is full on your server. This once happened to be the case with me. Try checking the available space on your server at root '/' (df -h).
    2. The sessions directory on your server (where the session files are being written) has some permission issues.

提交回复
热议问题