Session lost after redirect in Codeigniter

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

    I am have similar problem, and it turned that problem is very the commonplace ...

    root of the evil of my problems were the names containing the character "_"

    example, before was

    $this->session->set_flashdata('message_success', 'some message');
    

    after became

    $this->session->set_flashdata('messagesuccess', 'some message');
    

    My problem solved Thanks man with this resource http://biostall.com/losing-codeigniter-sessions/

提交回复
热议问题