session_start seems to be very slow (but only sometimes)

前端 未结 6 1509
暗喜
暗喜 2020-12-05 10:23

For some odd reason, just today our server decided to be very slow during the starting of sessions. For every session_start, the server either times out after 30 seconds, or

6条回答
  •  猫巷女王i
    2020-12-05 10:35

    I ran into this problem too. It was answered here:

    Problem with function session_start() (works slowly)

    Sessions are locked by PHP while one script is executing, so if scripts are stacked under the same session, they can cause these surprisingly long delays.

提交回复
热议问题