📜  在 php 代码示例中创建多个会话

📅  最后修改于: 2022-03-11 14:53:56.082000             🧑  作者: Mango

代码示例1
//THIS WILL ALSO HELP YOU TO RUN SYNCHRONOUS CURL IN PHP
session_name('s1');
session_start();
$_SESSION['name'] = 'Mai';
session_write_close();

session_name('s2');
session_start();
$_SESSION['name'] = 'Darren';
session_write_close();