Topic: php inloggnings test

Document 1: movie1.php

<?php
session_start();
$_SESSION['username']="Joe12345";
$_SESSION['authuser']=1;
?>
<html>
<head>
<title>Find my Favorite Movie!</title>
</head>
<body>
<?php
$myfavmovie=urlencode("Life of Brian");
echo "<a href='http://localhost/moviesite.php?favmovie=$myfavmovie'>";
echo "Click here to see information about my favorite movie!";
echo "</a>";
?>
</body>
</html>

Document2: moviesite.php

<?php
session_start();
//check to see if user has logged in with a valid password
if ($_SESSION['authuser']!=1) {
echo "Sorry, but you don´t have permission to view this page, you loser!";
exit();
}
?>
<html>
<head>
    <title>My Movie Site - <?php echo $_REQUEST['favmovie'] ?></title>
</head>
<body>
<?php
//delete this line: define ("FAVMOVIE", "The Life of Brian");
echo "Welcome to our site";
echo $_SESSION['username'];
echo "! <br>";
echo "My favorite movie is ";
echo $_REQUEST['favmovie'];
echo "<br>";
$movierate=5;
echo "My movie rating for this movie is ";
echo $movierate;
?>
</body>
</html>

Det går inte att logga in, vad gör jag för fel???

Re: php inloggnings test

Jag löste problemet genom att uppgradera till php 4.3.6