-
Notifications
You must be signed in to change notification settings - Fork 4
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
Problems with laravel #3
Comments
I tried multiple session() and \Illuminate\Support\Facades\Session startup methods, and finally found a cache-like function in Illuminate\Support\Facades:
It can reuse objects that have been instantiated before, which causes the re-registration of the SessionServiceProvider in the roadrunner-laravel to fail. Because the first cached object is used when \Illuminate\Support\Facades\Session is used multiple times, then The difference between session() and \Illuminate\Support\Facades\Session There are two suitable solutions: This approach does not solve all the problems encountered by the session.
If you see please reply, thank you |
+1 I'm having the same problem. |
The laravel framework has not considered multi-connection multiplexing at the beginning of the design. I tried a variety of methods to make the roadrunner perfectly compatible with laravel, including reference https://github.com/swooletw/laravel-swoole/blob/master/config/swoole_http.php#L92-L120 this implementation This makes me almost give up using the roadrunner to speed up the laravel project. |
I solved the problem with sessions (and login) with the following function in the bridge initialization: $this->app->afterResolving('session.store', function ($session) {
$this->app['redirect']->setSession($session);
}); Here's my current bridge file: https://github.com/CubeKode/LaravelPSR7Worker/blob/master/src/Bridge.php |
I tried this https://github.com/CubeKode/LaravelPSR7Worker/blob/master/src/Bridge.php, the login function seems to work fine, but when another browser opens this page, I automatically log in the same An account.and I can't log out at the same time. You can only solve part of the session problem, and there are more session exceptions that need to be resolved. |
Looks like there is a problem with the session,May have this problem in all versions of laravel, I only tested 5.5 5.7 5.8
I will continue to test the more detailed questions.
The text was updated successfully, but these errors were encountered: