[php] teraz problem z sesją

0

Nikt nie umiał mi pomóc w cookie dlatego postanowiłem zrobić sesje. Mam taki kod:

<?

    $login = $_POST['user'];
    $haslo = $_POST['pass'];
    mysql_connect('localhost','root','');
    mysql_select_db('tibia');
    $zapyt = mysql_query("SELECT * FROM admin WHERE login = '$login' AND pass = '$haslo'");
    $dziel = mysql_fetch_object($zapyt);
    $liczba = mysql_num_rows($zapyt);
    $num1 = rand(100000,999999);
    $allnum = "$num1";
    mysql_query("UPDATE admin SET num = $allnum WHERE login = '$login' AND pass = '$haslo'"); 

    if($liczba == 1) 
    {
        session_start();
        $_SESSION['log'] = $num1;
        echo "Zalogowany!";

    }
    else 
    {
        echo "Bład przy logowaniu!";
    }

?>

Wyświetla mi błędy:

Warning: open(/tmp\sess_2a4d98ccfa1030bbbc26f2a12d6c4ebd, O_RDWR) failed: No such file or directory (2) in c:\foxserv\www\tibia\admin\log.php on line 16

Warning: open(/tmp\sess_2a4d98ccfa1030bbbc26f2a12d6c4ebd, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

Co jest nie tak?

0
latata napisał(a)

Warning: open(/tmp\sess_2a4d98ccfa1030bbbc26f2a12d6c4ebd, O_RDWR) failed: No such file or directory (2) in c:\foxserv\www\tibia\admin\log.php on line 16

Warning: open(/tmp\sess_2a4d98ccfa1030bbbc26f2a12d6c4ebd, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

zła konfiguracja serwera, czytaj komunikaty o błędach zanim napiszesz post na forum!

1 użytkowników online, w tym zalogowanych: 0, gości: 1, botów: 0