PHP sessions in a load balancing cluster - how?

后端 未结 10 1985
粉色の甜心
粉色の甜心 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:04

    You could set PHP to handle the sessions in the database, so all your servers share same session information as all servers use the same database for that.

    A good tutorial for that can be found here.

提交回复
热议问题