New Session on every page load CI3.1.10 PHP7.2 |
So this is a curious one, and I am somewhat confused.
I updated from CI 3.0.4 to CI 3.1.10, and from PHP 5.6 to 7.2. I am running PHP through IIS fast CSG. I have two local domains registered in my host file: app.local, test.app.local. app.local is my Development instance, test.app.local is my local testing instance which i use before deploying to live testing. After upgrading, a couple of things broke, which was to be expected. but i got them all sorted out on my Dev instance, and everything worked fine. I then deployed to my local test site. And what i found was that on every request to the server, a new session was being created. PHP Code: $config['sess_driver'] = 'database'; The only change in any configuration is the database credentials, and schema. I then changed my dev environment to use the same PHP settings and configuration as the test environment, and everything continues to work. I am hoping some people might have some insight on this??
Never mind.
Turns outs, my deployment script didnt copy the new Code Igniter files?? no idea why, but a fresn copy of the Code Igniter 3.1.10 into the test instance seemed to fix all.
Yeah same thing happened to me, CI 3.1.10 & PHP 7.1.26. Session gone after redirect into another controller or method. Still didnt have clue till now.
edit: mine has been solved. it was my fault for not read user guide completely. |
Welcome Guest, Not a member yet? Register Sign In |