CodeIgniter “flashdata” doesn't work

前端 未结 12 2001
灰色年华
灰色年华 2020-12-03 18:10

I use CodeIgniter 2.1.0, i want after insert data in database get a message like \"Your information was successfully updated.\". For this work i have in CI_Controller follow

12条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 18:39

    You can also use database for the sessions, but you have to set the config items:

    $config['sess_match_ip'] = FALSE;
    $config['sess_match_useragent'] = FALSE;
    

    In that way the session flashdata will work again

提交回复
热议问题