ChisWill
ChisWill
No, I will create a new PsrRequest instance on each request and this is not my point. I mean, when we use SessionInterface as a singleton and application is running...
Yes, request is different. But, look at the if condition `if ($requestSessionId !== null && $this->session->getId() === null) {` `$this->session` had been modified and storage in memory, so after first...
As I mentioned in the question, we should use the code `$request->getAttribute(SessionInterface::class)` to get Session. I think Session depends on request, it shouldn't be a singleton instance. However, this will...
I think it won't work well. In Swoole coroutine environment,suppose this situation: Even if there is only one process and the first request come and do `sleep()`, the process will...
> 1. Added resetter config. > 2. Updated https://github.com/yiisoft/docs/blob/master/guide/en/tutorial/using-yii-with-swoole.md > > @ChisWill ping us if it doesn't help please. I refer to this article, but I found that in the...