-
-
Notifications
You must be signed in to change notification settings - Fork 435
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: session_write_close(): Cannot call session save handler in a recursive manner #1239
Comments
We are saving sessions on redis. |
Is this specific to the Amasty extension? Perhaps it is unregsitering the session singletons? I've not seen this before and I think would need to use a debugger or see a backtrace to solve it. You can log backtraces with Firegento_Logger. |
I have made a simple change in Mage_Core_Model_Resource_session and I'm testing it. If it does not introduce any new bug I'll do a pull request. |
@matteorossi-thespacesm any updates? Seeing this a lot in my logs. |
Still have this issue. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
As per php documentation: https://www.php.net/manual/en/function.session-set-save-handler.php
"It is possible to call session_write_close() from the destructor to solve this chicken and egg problem but the most reliable way is to register the shutdown function as described above."
Maybe it would be better to destroy session calling session_register_shutdown(). Where could it be called? Would it be better to call in constructor?
The text was updated successfully, but these errors were encountered: