PHP Multiple Concurrent Sessions Per User

后端 未结 5 1009
感动是毒
感动是毒 2021-01-04 04:19

I\'m working on a web app using PHP on Apache. $_SESSION variables are used quite a bit for the information that must persist across pages.

We need each user to be a

5条回答
  •  一向
    一向 (楼主)
    2021-01-04 05:10

    Knowing it's a very late answer ...

    As a developer, I usually need to simultaneously test the interface of different user types (Administrator, Registered, Visitor, etc.). Firefox browser has a "Multi-Account Containers" add-on that, among other things, keeps cookies separated by container. As many containers as required may be created and tabs opened inside each one of them. Each set of contained tabs share cookies but not across containers. The browser will be working with different independent "PHPSESSID" (or however you named the cookie), thus being able to handle multiple simultaneous sessions.

    There are other extensions and considerations, such as special bookmarks, etc. but they are beyond the scope of the question here.

提交回复
热议问题