-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: BaseHandler.php error #6425
Comments
Give your code controller |
Thanks for your reply. The file session handler works, but the session database handling throws an error. $sessionData = array( $this->Session->set($sessionData ); |
@kseok2307 |
@kseok2307 Please don't use screenshot for your code. We cannot copy & paste it. |
Can you show the Stack trace?
|
I'm really sorry. |
Thank you so much for your concern. I tried this and it was solved.
|
PHP Version
8.0, 8.1
CodeIgniter4 Version
CodeIgniter 4.2.4
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
fpm-fcgi
Database
MySQL 5.7
What happened?
When trying to handle mysql session
An error occurred in BaseHandler.php file
ini_set function
Error correction is required.Steps to Reproduce
App.php
public $sessionDriver = 'CodeIgniter\Session\Handlers\DatabaseHandler';
public $sessionSavePath = 'ci_sessions';
Expected Output
Fatal error
Uncaught ErrorException: ini_set(): Session ini settings cannot be changed when a session is active in /mnt/d/project/vendor/codeigniter4/framework/system/Session/Handlers/BaseHandler.php:162
Stack trace:
Anything else?
No response
The text was updated successfully, but these errors were encountered: