Session lost after redirect in Codeigniter

前端 未结 13 2681
清歌不尽
清歌不尽 2021-02-05 06:39

I\'m using codeigniter as a framework.

Firstly, I use localhost but when I change to my IP address the login function doesn\'t work anymore. I found that th

13条回答
  •  半阙折子戏
    2021-02-05 06:56

    Session lost after redirect in Codeigniter

    I found the problem too.

    You still met the problem. Please notice the session’s direction of the codeigniter. When your browser visited your website and refresh a few time, the codeigniter generated more session files under the session direction of the codeigniter.

    You remand load library session on your controller file.

    Please refer the following config.php setting.

    When you change the about setting, please remove or clear all offline data of your browser and all sessions file of the codeigniter. Then you try to do again. It is maybe repair the problem.

    If you can't still repair the problem. You can download the codeigniter package from codeigniter.org again and then extract the package for testing environment.

提交回复
热议问题