Emi*_*röm 9

使用$ _SESSION数组:

//store data:
$_SESSION['var'] = 'hello world';

//next page:
echo $_SESSION['var'];
Run Code Online (Sandbox Code Playgroud)

  • 不要忘记编写`session_start()`顶部的代码 (3认同)