I have these 2 pages.
<?php
session_start();
$UserName = "test";
session_register("UserName");
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="test2.php">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
And
<?php
If(session_is_registered("UserName")){
Print "session is registered";
}
else {
Print "session is NOT registered";
}
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
That is the whole pages and i get session is NOT registered...any idea why?
Thanks!😃