PHP Multiple Concurrent Sessions Per User

后端 未结 5 1014
感动是毒
感动是毒 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 04:45

    Here is a way to do that:

    -First disable session cookies in php.ini with:

    session.use_cookies = 0
    

    This makes sure that cookies are not used to pass the session id.

    -then Make sure you generate all your URLs with the session id included ( you get it through function session_id() e.g.:

    print "show list";
    

提交回复
热议问题