简体   繁体   English

跨浏览器会话更新数据库时如何刷新页面

[英]How to refresh the page when the database is updated across the browser sessions

I would like to refresh my php page when the database is updated.我想在更新数据库时刷新我的 php 页面。 I've already done it, but it refresh only one session so, if i have more than one user logged in, the others have to refresh the page manually.我已经完成了,但它只刷新一个 session 所以,如果我有多个用户登录,其他用户必须手动刷新页面。 I would like to have an automatic refresh that refresh all browser session and not the single.我想要一个自动刷新来刷新所有浏览器 session 而不是单一的。 Thanks谢谢

You can use Mercure https://mercure.rocks + (maybe) Vulcain https://github.com/dunglas/vulcain您可以使用美居https://mercure.rocks +(也许)Vulcain https://github.com/dunglas/vulcain

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

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