-
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
"Cannot call session save handler in a recursive manner" #2056
Comments
Why use alpha 5 ? CodeIgniter 4.0.0-beta.3 you need to use it. |
Agree with @Winchester37 that you should upgrade to the latest version and try again. Also make sure you've read this: https://codeigniter4.github.io/CodeIgniter4/libraries/sessions.html#a-note-about-concurrency (which I assume you know, given your final comment, but for anyone else who finds this thread as well). |
Forgot to mention. I did upgrade to beta.3 before posting this issue. No difference.
… Den 14. jun. 2019 kl. 15.55 skrev MGatner ***@***.***>:
Agree with @Winchester37 that you should upgrade to the latest version and try again. Also make sure you've read this: https://codeigniter4.github.io/CodeIgniter4/libraries/sessions.html#a-note-about-concurrency (which I assume you know, given your final comment, but for anyone else who finds this thread as well).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Is it an error of maximum execution time? If yes then you should change it apache |
@faizananwerali I think it is an error of infinite loop caused by cached filesize response. The maximum execution time is an effect of that error. |
I faced a similar issue with sucessives ajax calls. I've worked around using session_write_close() function at the beginning of the method. But, I'm think that something is not working well. |
Happens sometimes. Cannot give you a step-by-step guide to reproduce.
This was also a problem in CodeIgniter 3. Check bcit-ci/CodeIgniter#5545
I think the issue os that
filesize($this->filePath . $sessionID)
inFileHandler::read
is returning a cached size. Check https://stackoverflow.com/questions/3747982/php-filesize-reporting-old-sizeAdding
clearstatcache()
beforefilesize
should fix the issue.The text was updated successfully, but these errors were encountered: