Lost session varible between pages,该怎么解决

Lost session varible between pages
movie1.php
<?php session_start();
$_session['username']="Jhon";
$_session['authuser']=1;
?>


Find my favorite movie!

<body>
<?php
$myfavmovie=urlencode("transformers");
echo "";
echo "Click here to see information about my favorite movie!
";
echo "
".$_session['username']; //ok, display Jhon



?>



moviesite.php
<?php session_start();
/*
if ($_session['authuser'] != 1){
echo $_session['authuser'];
echo "Sorry, but you don't have pemission to view the page, you loser!";
exit();
}
*/
?>


My movie site - <?php echo $_request['favmovie']; ?>

<body>
Welcome to our site,
<?php echo $_session['username'] ?>! //doesn't work, display nothing,why?

My favorite movie is
<?php echo $_request['favmovie'] ?>! //doesn't work, display nothing,why?


<?php $movierate=5; ?>
My movie rating for this movie is:
<?php echo $movierate; ?>



//register_globles = OFF

------解决方案--------------------
$_SESSION大写

郑重声明:本文版权包含图片归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们(delete@yzlfxy.com)修改或删除,多谢。

郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。

留言与评论(共有 0 条评论)
昵称:
匿名发表
   
验证码: