Multiple PHP Sessions

前端 未结 2 1893
囚心锁ツ
囚心锁ツ 2020-11-27 20:07

I am to build a PHP application for a website that already has another PHP application running on the same domain/server. My app will of course be using sessions, and I don\

相关标签:
2条回答
  • 2020-11-27 20:40

    Another thing that may help you in keeping apps separate is move the session storage to another place either setting session.save_path in php.ini to a folder of your choice or calling session_save_path() before session_start().

    0 讨论(0)
  • 2020-11-27 20:43

    There is an easier way: session_name.

    Prior to calling session_start(); call session_name("something"); (where you change something to whatever you want it to be called).

    0 讨论(0)
提交回复
热议问题