ErrorException: ini_set() A session is active. |
(01-27-2024, 07:00 AM)berky Wrote: Then is there a way to write my header/login check in CI4 space, and be able to import it from my pure php side? I am trying to avoid maintaining 2 equivalent files during the transition process. You cannot use PHP Session and CI Session at the same time. Because CI Session is based on PHP Session. After all, they use the same PHP Session feature. CI Session is an extension of PHP Session. So it might be better to use CI Session in your pure PHP script. But I don't know you can do it easily. This shows how to use CI classes in pure PHP file. https://github.com/codeigniter4/translat...p/bin/test It uses CodeIgniter\CLI\CLI class. |
Messages In This Thread |
ErrorException: ini_set() A session is active. - by berky - 01-26-2024, 07:54 PM
RE: ErrorException: ini_set() A session is active. - by kenjis - 01-26-2024, 08:53 PM
RE: ErrorException: ini_set() A session is active. - by berky - 01-26-2024, 09:05 PM
RE: ErrorException: ini_set() A session is active. - by kenjis - 01-26-2024, 09:17 PM
RE: ErrorException: ini_set() A session is active. - by berky - 01-27-2024, 07:00 AM
RE: ErrorException: ini_set() A session is active. - by kenjis - 01-27-2024, 04:48 PM
RE: ErrorException: ini_set() A session is active. - by kenjis - 01-27-2024, 04:40 PM
RE: ErrorException: ini_set() A session is active. - by berky - 01-29-2024, 09:26 AM
|