简体   繁体   English

PHP Symfony Redis session 锁

[英]PHP Symfony Redis session lock

I am using RedisSessionHandler as a default session in my local Symfony application.我在本地 Symfony 应用程序中使用RedisSessionHandler作为默认值 session。 As I understand the default redis.session.locking_enabled parameter should be false.据我了解,默认的redis.session.locking_enabled参数应该是 false。 Yet I am still getting the session lock on every page load.然而,我仍然在每次页面加载时获得 session 锁。

For example if I load the same page in multiple tabs at once I have to wait for these pages to load in the same queue as I opened them.例如,如果我一次在多个选项卡中加载同一个页面,我必须等待这些页面在我打开它们时加载到同一个队列中。 Session is used to get the logged in user details. Session 用于获取登录用户的详细信息。

Symfony app is running on Docker in this case.在这种情况下,Symfony 应用程序在 Docker 上运行。

What I am missing here?我在这里缺少什么? How non blocking Redis session should work?非阻塞 Redis session 应该如何工作?

Apparently that was the Chrome issue.显然这是 Chrome 的问题。 It loads all the opened pages one by one.它会一个接一个地加载所有打开的页面。 Tried Firefox and everything loaded at the same time.尝试了 Firefox 并同时加载了所有内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM