页面重定向不在php中工作

Page redirecting Not working when session die showing blank page

if( !isset($_SESSION['id']) )
die
 {

header(" Location:http://mysite.in/newlogin.php");
exit();
}

plerse any one can help

  • Your code is poorly-designed, buggy and does not make sense.
  • Avoid using 'die' on handling errors.
  • Read some about Exception Handling techniques on PHP.
  • Before reading all the please have some time developing your skill on PHP and programming don't be hurry.
  • Actually die and exit doing the "exit" action but with some differences.