i am using two webpage in menu.php i am not able to get the detail of session variable it will display undefined index.
controller.php
$info = mysql_fetch_array( $data );
session_start();
// store session data
$type="$info[TYPE]";
$no="$info[NO]";
$_SESSION['type']=$type;
$_SESSION['no']=$no;
echo "Pageviews=". $_SESSION['type'];
echo "Pageviews=". $_SESSION['no'];
header('Location:menu.php');
menu.php
<?php sesstion_start();
echo "Pageviews=". $_SESSION['type'];
echo "Pageviews=". $_SESSION['no'];
?>
See Question&Answers more detail:os