-4

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

bgnew
  • 1

1 Answers1

0
  • 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.
Hatem
  • 123
  • 11