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
sto usando un mix di Cokkie e Sessioni e mi trovo di fronte a questo warning. Mi importerebbe poco sinceramente, ma credo sia collegato al fatto che non riesco a cancellare i cookie.

la pagine è carrello.php

e il codice interessato è il seguente

Codice PHP:
    if ($_COOKIE['cart_cc_f']) {
        if (
$_SESSION['cart']) $_SESSION['cart'] .= ';'.$_COOKIE['cart_cc_f'];
        else 
$_SESSION['cart'] = $_COOKIE['cart_cc_f'];
        
setcookie("cart_cc_f"""time() - 3600);
        
header('location: carrello.php');
    }