I have an unusual problem, only happening on one server. Following code
....
elseif ($_GET['action']=='login') {
if (empty($_POST['login_name'])) { $_POST['login_name']=''; }
if (empty($_POST['login_pass'])) { $_POST['login_pass']=''; }
if (!empty($_POST['send'])) {
if (($_POST['login_name']==_ADMIN_NAME) and ($_POST['login_pass']==_ADMIN_PASS)) {
//Successfully logged in
$_SESSION['logged']=1;
// DOES NOT WORK
header('Location: '.$filename);
die('Command '.$filename);
}
}
// Show Form;
include('plogin.inc.php');
}
elseif ($_GET['action']=='logout') {
$_SESSION['logged']=-1;
// DOES WORK!
header('Location: '.$filename);
}
So the problem is this if i click the link logout, all goes well and i get redirected to $filename. If i submit the login form it checks if the post is correct, set's the session var, but then dies instead of redirecting.
Kesinlikle geçer olsa ben form ile göndermek zaman, tüm hata raporlama ama (hiçbir hata), bu on çıkış tamponları yönlendirmek vermiyor var (oturum var ayarlayın ve ben kalıp parçası almak çünkü)
What could be the cause for this behavior? Thanks