hola tengo el siguiente problema al ejecutar lo siguiente:
session_start();
session_name('session');
$session = session_id('session');
session_register('session');
$check = false;
include_once("lib/db.php");
include_once("parameters.php");
$connectdb = new phpbMysql;
$connectdb -> connection($namehost,$user_database,$password_data base,$name_database);
$language = $connectdb -> consult("select language from config where id=1");
$sql = "select * from config where id='1'";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
if(!(empty($username) && empty($password))){
if(($password == $row["passwordadmin"]) && ($username = $row["useradmin"])){
$connectdb -> InsertSession($session);
header("Location: admin/adminpanel.php?session=$session");
}else{
switch($language[0]){
case "english" : include_once("language/english.php");
break;
case "spanish" : include_once("language/spanish.php");
break;
case "italian" : include_once("language/italian.php");
break;
case "french" : include_once("language/french.php");
break;
case "german" : include_once("language/german.php");
break;
case "portuguese" : include_once("language/portuguese.php");
break;
default: printf("Choose language from parameters.php!");
}
$check = true;
include("inc/login.inc");
}
}
switch($language[0]){
case "english" : include_once("language/english.php");
break;
case "spanish" : include_once("language/spanish.php");
break;
case "italian" : include_once("language/italian.php");
break;
case "french" : include_once("language/french.php");
break;
case "german" : include_once("language/german.php");
break;
case "portuguese" : include_once("language/portuguese.php");
break;
default: printf("Choose language from parameters.php!");
}
if(empty($username)){
include("inc/login.inc");
}
me muestra el formulario de control del acceso pero al ingresar el usuario y clave no redirecciona a ninguna parte y deajo del formulario muestra lo siguiente
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
espero que me puedan ayudar gracias