I have sessions working where individual users have their own person
information and can't view others personal info... The problem is, the
sessions block them in php but I can't block them from files that I can't
have the session security.
I tried imbedding the file into a secured php file but it did not work, my
code is below that I used. For reference, 00231 is the username to login so
it checks if the username is the same etc.
<?
// Agent Access - secure page
// session check
session_start() ;
if ($SESSION_UNAME != "00231" )
{
// if session check fails, invoke error handler
header("Locatio n: error.php?e=2") ;
exit();
}
require("http://www.cmiteam.com/privagents/contests/test.pdf");
?>
information and can't view others personal info... The problem is, the
sessions block them in php but I can't block them from files that I can't
have the session security.
I tried imbedding the file into a secured php file but it did not work, my
code is below that I used. For reference, 00231 is the username to login so
it checks if the username is the same etc.
<?
// Agent Access - secure page
// session check
session_start() ;
if ($SESSION_UNAME != "00231" )
{
// if session check fails, invoke error handler
header("Locatio n: error.php?e=2") ;
exit();
}
require("http://www.cmiteam.com/privagents/contests/test.pdf");
?>
Comment