Transfer session across server in PHP

后端 未结 6 1126
陌清茗
陌清茗 2021-01-12 03:38

I need to transfer the user session across servers. ie. If user logged in server1 and if the user exists in server2 , then I have to transfer the user session details to ser

6条回答
  •  佛祖请我去吃肉
    2021-01-12 03:59

    Another opportunity could be sharing the filesystem. Since PHP puts the session in the filesystem, you could share the filesystem (sshfs for example) on both servers.

    the setting for changing the destination directory in the php.ini is

    session.save_path
    

提交回复
热议问题