Hi,
There has been a lot of discussion on sessions, and I know I should be using them (Setting up forums & cardservices).
But when testing sessions, I found out the session data is not stored on the server (Basically: I switched of cookies, and the routine quit working)
I use the following example code in the login.php:
before html tag:
<?php
session_start();
session_register("login_status");
session_register("login_utilizador");
if($login_status == 1){
echo "<script>location.href='logado.php'</script>";
}
$login_status = 0;
?>
then in the middle of the code:
if ($utilizador->verificarUtilizador($login, $password)==true) {
$login_status = 1;
$login_utilizador = "$login";
echo "<script>location.href='logado.php'</script>";
} else {
echo "<script>location.href='errologin.php'</script>";
}
If i don't turn on to accept all the cookies in the IE 6, the Login doesn't work, appearing the Privacy Police icon on the right side of the Status Bar, at the bottom, saying "cookies blocked".
But the only thing i am using is this code above... :/
Any ideas? Thank you... this code page is in http://www.rubensalgueiro.com/login.php