Session not persisting while upgrading from 3.0.4 to 3.1.7 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Session not persisting while upgrading from 3.0.4 to 3.1.7 (/showthread.php?tid=70266) |
Session not persisting while upgrading from 3.0.4 to 3.1.7 - rkorebrits - 03-15-2018 I'm busy upgrading from 3.0.4 to 3.1.7 and having issues with session. I've tested this on PHP 7.0 and PHP 7.2 I've seen a few other issues here regarding session on PHP 7.x with late versions of CI, but not any with resolution it seems. When I run this: Code: $this->session->set_userdata('test', 'test'); it prints "test" just fine. Then when I remove the Code: set_userdata and reload the page, it's empty. Either sessions aren't being stored, or they are being cleared. What could this be? RE: Session not persisting while upgrading from 3.0.4 to 3.1.7 - InsiteFX - 03-16-2018 We need to know all the versions you are running and what type of sessions you are using database, file etc; RE: Session not persisting while upgrading from 3.0.4 to 3.1.7 - Narf - 03-19-2018 I'd look at the configuration first ... It's either something on the cookie level like a domain mismatch, or a bad save_path. |