Cookie problem of tp5

Business requirements for making a real estate browsing history

now the cookie, on the page has been invalid and cannot be overlaid. When printed out, the cookie is always empty.

clipboard.png
head

clipboard.png

Baidu said for a while, some said that the permissions were insufficient, and some said that the cookie life cycle was not set.

related codes

$ckhouse = Cookie::get ("loupan");

    //Cookie::get("loupan");
    print_r($ckhouse);
    var_dump($ckhouse);

    if (!empty($ckhouse)) {
        echo 1;
        in_array($id, $ckhouse) ? : $ckhouse[] = $id;
        Cookie::set("loupan", $ckhouse);
        $ckarr = array();
        foreach ($ckhouse as $ck => $cv) {
            $ckarr[] = Db::table(config("database.prefix") . "house")->field("*")->where("id=\"" . $cv . "\" and status=1 ")->order("id desc")->find();
        }
        //$ckarr["price_zong"] = $ckarr["price_zong"]/10000;
        @$ckarr = array_reverse($ckarr);
        $this->assign("ckarr", $ckarr);
    } else {
        $ckhouse[] = $id;
        Cookie::set("loupan", $ckhouse);
        $this->assign("ckarr", "");
    }

excuse me, what is the cause of this? I am using linux+nginx

.
Apr.27,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a702-2ba5e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a702-2ba5e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?