bonsoir
juste une question pourquoi ne pas faire le redirection en php ?
$_SESSION'password_sha1'] = $password_sha1;
$_SESSION'user'] = $user;
if ($_POST'user'] == $user and $password_sha1 == $password)//veriffication du login
{
$_SESSION'status'] = true;
header("location:accueil.php");
}
else{
header("location:index.php");
}