laravel5.1中cookie寫入問題

chenBJ發表於2021-06-03
use Illuminate\Support\Facades\Cookie;
Cookie::queue('cancellation','y', $minutes = 60, $path = null, $domain = null, $secure = false, $httpOnly = false);
        dd(Cookie::get('cancellation'));

很怪異,上午還好好的寫入正常,下午cookie死活寫不進去了,有大神遇見過類似的問題不?

本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章