PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
here is code of test.php
there is no problem with the above code means its not giving any error
but on the other hand when it moves to test.php it did not works
any help plz.
i also want to know tht method i used to register session is ok or not if not wots correct one?
---------------------------test.php----------------------------------------------
<?
if(!session_is_registered('userid'))
{
echo "i am here";exit;
header("location:default.php?log=false");
exit;
}
echo "I am here000000!";
exit;
?>
------------------------------------------------------------------------
---------------------------test.php----------------------------------------------
<?
session_start();
if(!empty($_SESSIONї'userid'))
{
echo "i am here";exit;
header("location:default.php?log=false");
exit;
}
echo "I am here000000!";
exit;
?>
------------------------------------------------------------------------