![](/img/trans.png)
[英]How can I restrict logged in user from logging in again using another browser/tab?
[英]How can you check if a user is logged into the site on one tab but not on another tab from the same browser?
如果這純粹是出於好奇,有辦法輕松添加它。 正如您所提到的,當頁面打開時,它將檢查已保存的Cookie,查找已保存的SessionID並使用后端進行檢查以查看它是否仍為活動會話。 在頁面關閉后,此會話ID將被清除並從后端的靜態列表中刪除。 你應該能夠從這里填補缺失的空白。
如果您需要了解方向,可以使用PHP輕松管理cookie,使用javascript調用它。 祝好運!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.