mercredi 30 mars 2016

PHP: IF() Equal TO Not working

if($_SESSION['auth'] != 2 || $_SESSION['auth'] != 3){
    header("location:../login/login.php");
}

what am i doing wrong, it keeps sending me back,

its only when session is 1 or not set, it should run the header()

Aucun commentaire:

Enregistrer un commentaire