Thanx for your input!
This is the code that is not working since I turn the globals off
Is my validate sesion php
$rs = mysql_query($ssql,$Conn) or die(mysql_error());
if (mysql_num_rows($rs)!=0){
session_start();
$_SESSION["autent"] = "YES";
$arrRecord = mysql_fetch_array($rs);
if ($arrRecord['Range'] == "1")
header("location: users.php");
else
header("location: admin.php");
}else {
header("Location: login.php?erroruser=yes");
________________________________________-
Sesion.php
<?
session_start();
if ($_SESSION["autent"] != "YES") {
header("Location: login.php");
exit();
}
?>
Probably you may see something to change
Thanx