简体   繁体   中英

How to know if user is logged in to my SAAS from different tab

I have a SAAS software with Laravel 5.2 (PHP).

Tab A - Is my SAAS website.

Tab B - Is my client website.

SAME BROWSER

My client log-in to my system on Tab A.

I want to present something on Tab B(Client website) but only if I know that he is logged-in in Tab A or have session/cookie because of the logged-in on Tab A

How can I do it / Detect it?

可能最好的方法是允许服务器发送 websocket 消息,通知所有其他浏览器选项卡有关登录事件的信息,例如,这可以触发页面重新加载。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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