-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Session handling not working in worker mode #85
Comments
Which session driver are you using? |
|
The following appears to work fine: session_id(session_create_id());
var_dump(session_start()); Which seems to be about what symfony is doing. I imagine it is related to the save handler. Does your server's user have write access to |
What version of Symfony are you using? It looks like |
I'm trying to use the latest version of Shopware https://www.shopware.com/en/download which is based on Symfony 5.4. |
Do you know if Shopware is already compatible with RoadRunner and similar tools? I wonder if we aren't in the same situation as with Drupal, where a custom session handler that hasn't been designed to be reset is used. |
They are currently moving towards Symfony Flex and Runtime compatibility. I've tested the version which should already be Runtime compatible https://github.com/shopware/recipes/blob/main/shopware/core/6.4/public/index.php respectevly https://github.com/shopware/production/tree/flex |
Shopware is not running on any of the tools. We started working in that direction by removing state in classes and adding runtime support. For now I would not recommending running such a tool before the entire ecosystem has pushed to this. It could be that extensions holds state which break or show information from previous customer. Feel free to make pull requests to Shopware to improve the support. As I know also twig globals are only applied once and some variables relating to routing are wrong. It's not so easy as just switching the runtime 😀 |
Thanks for the info @shyim! Let's close this one for now. |
Can you explain how did you manage to fix this issue ? I've tried to used different handler (null, redis, mysql) and had the same results for all 3.
I can't debug because when i tried to edit the files on the container, it doesn't change anything, If i well understood the behavior of frankenphp, the app is running on the memory, Is there any way to edit the project and "update" the memory with the new edited files ? |
I'm trying to use a bigger Symfony application in worker mode. If the caches are warm, it generally works as long as no session is used.
If I visit actions containing e.g. flash message
I get this:
The text was updated successfully, but these errors were encountered: