laravel and multi-sessions from the same browser

后端 未结 8 1240
眼角桃花
眼角桃花 2020-12-02 21:00

In our web app, If I use a single browser, login to our application as user A, open another tab and login as user B - User A loses his session data. I assume this is due to

8条回答
  •  渐次进展
    2020-12-02 21:28

    I don't know how complicate it is to code it into laravel but this could be one solution:

    You use a different session name, has to be a string, and code it into the url every time so the application knows which user made a request. So you can call the session variables by a normal name.

提交回复
热议问题