PHP sessions in a load balancing cluster - how?

后端 未结 10 1963
粉色の甜心
粉色の甜心 2020-11-29 17:44

OK, so I\'ve got this totally rare an unique scenario of a load balanced PHP website. The bummer is - it didn\'t used to be load balanced. Now we\'re starting to get issues.

10条回答
  •  离开以前
    2020-11-29 18:31

    The easiest thing to do is configure your load balancer to always send the same session to the same server.

    If you still want to use session_set_save_handler then maybe take a look at auto_prepend.

提交回复
热议问题