In PHP, is there any harm in running session_start() multiple times?

前端 未结 7 853
臣服心动
臣服心动 2020-12-03 13:37

Presumably there\'s some tiny performance hit, but beyond that?

7条回答
  •  渐次进展
    2020-12-03 13:41

    I usually put a session start statement in an include file that I require_once. But I don't think there should be an issue with multiple calls.

提交回复
热议问题