Store/Check/Get/List Cookie in Laravel 5.1

陌路散爱 提交于 2020-01-06 06:50:14

问题


I just store a cookie into the queue

Cookie::queue('session', $response['session'], 3);

When I try to list all the cookies in the queue, I got an empty array

dd(Cookie::getQueuedCookies()); // I got empty array --->  []


if(Cookie::has('session')) {
    $session = Cookie::get('session');
}

What did I miss ?

This question is about Cookie and Cookie != Session

来源:https://stackoverflow.com/questions/49801840/store-check-get-list-cookie-in-laravel-5-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!