![]() |
Session loaded multiple times - 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 loaded multiple times (/showthread.php?tid=75485) |
Session loaded multiple times - simoon - 02-11-2020 Hi, i am using codeigniter 3.xx. I got the following error on every pageview: DEBUG - 2020-02-11 14:36:39 --> Session class already loaded. Second attempt ignored The session is loaded with in the autoload config and i can not find the $this->load->library('session'); anywhere in the code so i think it should not load twice. can someone tell me how to fix this? thanks and best regards, Alex RE: Session loaded multiple times - dave friend - 02-11-2020 It is not an error. It's only a bit of info you can use to optimize your code. As the message says, the attempt is ignored and the session is not loaded again. Even though you cannot find it, there must be a line of code that runs $this->load->library('session'); What piece of code is always executed? Look in those places for redundant load attempt. RE: Session loaded multiple times - simoon - 02-13-2020 (02-11-2020, 11:01 AM)daveĀ friend Wrote: It is not an error. It's only a bit of info you can use to optimize your code. As the message says, the attempt is ignored and the session is not loaded again. HI, i found it an managed to solve this ![]() thanks alex |