PHP: what is the purpose of session_name

前端 未结 2 1843
眼角桃花
眼角桃花 2020-12-06 04:06

I\'m not quite sure what the purpose of session_names is.. Can someone please explain in what circumstances defining a name would be beneficial?

2条回答
  •  甜味超标
    2020-12-06 04:48

    The default is - I think - PHPSESSID. If you have more than one application on the same host, they would share those sessions. So, you should set different session names for each application, so that there is no weird stuff happening.

提交回复
热议问题