-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time #2857
Comments
@zorn-v This is a measure for the problem of duplicate cookie being transmitted, but since that problem exists only in apache2 SAPI, it needs to be processed only for that environment. I will fix this. Thanks! 👍 |
Nope, I get that error in php built in server |
@zorn-v I'm sorry to be confused. What I would like to say is that "ini_set ('session.use_cookies', 0);' is required only for apache2 SAPI. |
Hi, PHP Warning 'yii\base\ErrorException' with message 'ini_set(): A session is active. You cannot change the session module's ini settings at this time' |
@zorn-v , @MrAwanishKumar I fixed it. Please try nightly build. Thanks! 👍 |
@nao-pon it's working now. Thanks |
PHP 7.3, Apache 2.4.38, elFinder 2.1.53 display this warning. |
@lianee I made this fix. In various environments, setting with ini_set () may be possible even after the session starts, so the modification has been made in consideration of such environments. Thanks! 👍 |
Thanks, unfortunately, this doesn't fix the issue when a session is active in this environment (classic debian LAMP) and session.use_cookies is true (the default, and the desired state for me). Well, that's no big case since it's just a warning, but I like to have error reporting, and it bothers me to have this one every action in elFinder. Do you think just ignoring this warning would cause problems?, as in: |
Here
elFinder/php/elFinderSession.php
Line 65 in b3a6555
The text was updated successfully, but these errors were encountered: