Ben o günlükleri sonra belirli bir sayfaya kullanıcıyı yönlendirmek istediğiniz şüpheli, sadece bunun için header işlevini kullanabilirsiniz:
header("LOCATION: user-panel.php");
İşte user-panel.php sayfasına ev yönlendirir.
Sadece bu durumda da gerekli olmayabilir, ancak bunun için javascript kullanabilirsiniz eklemek için, bulunan tarihi vardır kadar Tarayıcınızın geri button geri gider:
<a href="#" onclick="history.back(); return false;">Go Back</a>
More info here strong>
Update Based On Comment:
Temelde kullanıcı ilk kez doğrulanmış bir oturum kurmak, burada bir örnek:
session_start();
// check if the user is already logged in: if yes redirect him even if the back button is clicked
if (isset($_SESSION['logged']))
{
header("LOCATION: user-panel.php");
}
// below is your own normal code
// your db query if the user specified criteria was met
if (user found)
{
$_SESSION['logged'] = true; // you should add this line if not already there
// redirect the user
}