CodeIgniter Forums
What CI 4.2.1 Session handler errors = [CodeIgniter\Session\Handlers\FileHandler] - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: Regional User Groups (https://forum.codeigniter.com/forumdisplay.php?fid=25)
+--- Thread: What CI 4.2.1 Session handler errors = [CodeIgniter\Session\Handlers\FileHandler] (/showthread.php?tid=82530)



What CI 4.2.1 Session handler errors = [CodeIgniter\Session\Handlers\FileHandler] - luckmoshy - 07-20-2022

Hello, How are you! I face this info error in a log file where is wrong with the session handler?

PHP Code:
INFO 2022-07-20 03:15:26 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver

What is the cause?

I have CI 4.2.1 app with the admin login system, everything is set ok except when I log in with its credentials, it does not redirect to the dashboard except it keeps onĀ 

login and I have checked in the log file I see that info. The app uses a module and its codes were borrowed from CI 4.19 which works fine.


RE: What CI 4.2.1 Session handler errors = [CodeIgniter\Session\Handlers\FileHandler] - kenjis - 07-20-2022

It is not an error log. It is INFO, nothing wrong.


RE: What CI 4.2.1 Session handler errors = [CodeIgniter\Session\Handlers\FileHandler] - luckmoshy - 07-20-2022

(07-20-2022, 03:36 AM)kenjis Wrote: It is not an error log. It is INFO, nothing wrong.

Thank for correcting me @kenjis but I thought this issue was caused by CSRF anyway I don't know what is going on because no errors or exception errors except in log file info.
does CI 4.2.1 generate automatically such info with the session? anyway briefly I have deeply checked the app it shows the session vars do not save that is why it does not redirect to the dashboard but everythings is set ok


RE: What CI 4.2.1 Session handler errors = [CodeIgniter\Session\Handlers\FileHandler] - kenjis - 07-20-2022

(07-20-2022, 06:22 AM)luckmoshy Wrote: does CI 4.2.1 generate automatically such info with the session?

Yes, it shows you are using FileHandler and the Session class is initialized.

If CSRF is the cause, try to change this config:
https://codeigniter4.github.io/CodeIgniter4/libraries/security.html#redirection-on-failure