Welcome Guest, Not a member yet? Register   Sign In
codeigniter 3.1.9 session failure
#2

(10-04-2019, 11:03 PM)chimwemwe Wrote: am building a project and apparently my session works and sometimes stops working.when i post that data to the first controller and access it using a session it works but when i want to access it in other controllers and views it does not.
Since you have not provided additional information in the form of a piece of code where you work with sessions or logs from writable/logs/.
I can assume that you initialized the session class in only one method in which it works for you, and in the one to which you refer to this initialization is not...
You must initialize the library in each controller method for it to work.
If you do not want to do this in each method then it is highly recommended to use models.
I would change this world, but God doesn't give me the source.
Reply


Messages In This Thread
codeigniter 3.1.9 session failure - by chimwemwe - 10-04-2019, 11:03 PM
RE: codeigniter 3.1.9 session failure - by Digital_Wolf - 10-05-2019, 02:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB