-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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 disappears after a few image requests #15551
Comments
Doesn't look like a laravel bug, and your session start hack is really not a good idea. It also has nothing todo with laravel sessions. |
Sorry, don't believe this. If try it without laravel framework, and all works fine:
Do you have an idea or a proposal what I can do? |
I can reproduce the issues on this system too:
The problem is well know! I foundlaravel-locking-session.This package addresses the problem where session data will be lost due to concurrent requests. I have installed it now and it's seems to solve my problem - but I think this is a dirty solution. |
Description:
When I show a page with a few images and reload the page a few times, the session-data will be lost completely.
The problem happens on my production system (Linux), and on XAMP (Mac), too.
Steps To Reproduce:
The case can be simplified as follows:
Define this routes:
If you call the url "./killmysession", sometimes your session will be killed.
When I load the images directly from file, all works fine.
Workaround:
I've written "session_start();" on the top of the route file. I know, it is not the final solution, but it works for me temporarily.
The text was updated successfully, but these errors were encountered: