<form action="login.
php" method="post">
用户名<input type="text" name="username"><br>
密码<input type="text" name="password"><br>
记住密码<input type="checkbox" name="jizhu" value="1"><br>
<input type="submit">
</form>
<a href="userinfo.php">用户信息</a>
<?php
session_start();
function p($arr){
echo "<
pre>";
print_r($arr);
echo "</pre>";
}
p($_SESSION);
p($_COOKIE);
?>