Session lost after redirect in Codeigniter

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

    In my case, after some tests (with https and http in localhost) the error comes for that issue and not having properly set the $config['cookie_secure'], so you can try changing in config.php:

    $config['cookie_secure']    = FALSE; // if is not under https, or true if you use https
    

    Cheers!

提交回复
热议问题