sir i am doing my project and i am using session array to save some variables that can be accessed at any page but i am unable to access the values saved in session array
<html>
<head><title>student home page</title></head>
<body bgcolor="lightblue"><h1>well come to student login page</h1>
<form name="f1" action="" method="post">
<table border="1" bgcolor="silver">
<tr><td>username:<input type="text" name="uname"/></td><td>plz enter your id as username</td></tr>
<tr><td>password:<input type="password" name="pwd"/></td><td>use a_z and 1_9 as password</td><tr>
<tr><td colspan="2" align="center"><input type="submit" name="sub"/></td><tr>
</table>
</form>
</html>
<?php
include "connection.php";
//now, let's register our session variables
//finally, let's store our posted values in the session variables
if(isset($_POST['sub']))
{
$user=$_POST['uname'];
$p=$_POST['pwd'];
$sql="select count(*) from student where ( id='".$user."'and password='".$p."' and status='active' or 'unblock')";
$qry= mysql_query($sql);
$result= mysql_fetch_array($qry);
if($result[0]>0)
{
session_start();
$_SESSION['uname']=$user;
header('location:radio.php');
}
else
echo "your user name or password is incorrect or you are blocked by your administrator";
}
?>
<?php
include "connection.php";
if(isset ($_SESSION['uname']));
echo $_SESSION['uname'];
?>
i get the error of $_session is undefined kindly guide me