We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
php -v
php 7.1.7
php --ri swoole
swoole 2.0.12
Laravel
Lumen
laravel 5.6.2
1.登陆后打开websocked连接页面触发onOpen事件 2.注销用户登录(注销后后台首页已经不能访问了) 3.重复打开websocked连接页面触发onOpen事件 4.打开后台首页(此时又能正常访问),session又有了
感觉是Laravel的session清除后,onOpen事件中开启的Laravel生命周期还在,刷新一下连接又恢复原来的session了
The text was updated successfully, but these errors were encountered:
应该是跨worker进程导致的问题。Http和Websocket在不同的worker进程中各自加载了Session,Http Worker进程中清理Session后,Websocket进程读取的还是之前加载在内存里的Session。
Sorry, something went wrong.
已修复。
ccd86b8
No branches or pull requests
php -v
)php 7.1.7
php --ri swoole
)swoole 2.0.12
Laravel
/Lumen
version(check composer.json & composer.lock)laravel 5.6.2
1.登陆后打开websocked连接页面触发onOpen事件
2.注销用户登录(注销后后台首页已经不能访问了)
3.重复打开websocked连接页面触发onOpen事件
4.打开后台首页(此时又能正常访问),session又有了
感觉是Laravel的session清除后,onOpen事件中开启的Laravel生命周期还在,刷新一下连接又恢复原来的session了
The text was updated successfully, but these errors were encountered: