往session里存
<?php
session_start();
$_SESSION["name"]="haha";
Header("Location:a.php"); //跳转到a.php
?>
从session里取
<?php
session_start();
echo $_SESSION["name"];
?>
往session里存
<?php
session_start();
$_SESSION["name"]="haha";
Header("Location:a.php"); //跳转到a.php
?>
从session里取
<?php
session_start();
echo $_SESSION["name"];
?>