Forum Moderators: coopster
1) when user is directly entering the path of any other page with out login he is able to access suspenseful & also able to run php server scripts tag to that option:Which is not acceptable in my case so help me to solve this....
<?php if(!isset($_SESSION['login']))
{
die('Access denied!');
} ?> $sql="show columns FROM $tbl_name";
headers as a result but not the data entered against it
$query = mysql_query("SELECT * FROM $tbl_name");
while($result = mysql_fetch_array($query))
{
echo $result['col_name'].' '.$result['col_name2'].' '.$result['col_name3'].'<br>';
} $_SESSION["myusername"] = $myusername;
$_SESSION["mypassword"] = $mypassword;
header("location:login_success.php"); if(!isset($_SESSION["myusername"]))
{
die('Access Denied');
} else
{
session_start();
$_SESSION['myusername'] = 'myusername';
{
header("location:ticket.html");
}
}
else
{
session_start();
$_SESSION['myusername'] = 'myusername';
header("location:ticket.html");
}