Session lost after redirect in Codeigniter

前端 未结 13 2405
清歌不尽
清歌不尽 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:54

    You should add one thing to your autoload.php file.

    $autoload['libraries'] = array('database','session');

    this will solve your session re-direction problem

提交回复
热议问题