Welcome Guest, Not a member yet? Register   Sign In
Session in CI 4 is not working accross the controller
#7

I encountered this problem recently.
For me the reason was using hard-coded url: https://www.abcd.com. While the browser url was without “www” ie. https://abcd.com.
So instead of hard coded url, i used base_url( ) to generate the base-url automatically.
And that solved the session problem, and it is now working in all functions.
Reply


Messages In This Thread
RE: Session in CI 4 is not working accross the controller - by Vishwas Gagrani - 08-01-2022, 06:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB