Cannot Create Session |
I've a situation where I cannot create a session. The exact same code works fine on another server. I don't know why this one doesn't work.
Code: CRITICAL - 2022-12-14 19:54:46 --> ini_set(): Session ini settings cannot be changed after headers have already been sent
Simpler is always better
Somewhere in your code is outputing to the view before you create the session.
Check your code for output to the screen ( view ). It means that the headers have already been sent before you used the session. Start at your BaseController and work upwards to your other Controllers. Place an ( exit(); ) in your code to check for the output to the view. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(12-14-2022, 11:54 PM)InsiteFX Wrote: Somewhere in your code is outputing to the view before you create the session. Thanks. I had a <<?php in one of my app/Config/Boot files.
Simpler is always better
|
Welcome Guest, Not a member yet? Register Sign In |