等效的php代码
session_start();
$_SESSION['username'] = $_POST['name'];
$_SESSION['userid'] = $_POST['id'];
$_SESSION['entid'] = $_POST['entid'];