You may need to keep an eye on the cookie in the browser development tools. Check its expiry time and see that it disappears in the browser
Jul 4, 2021
2
Level 4
Unable to get cookies values if Session has expired
I am storing some cookies using Cookie::queue('key', $value, 1577847);.
I can get the value normally using $request->cookie('key').
However, sometimes the session will expire while the user is browsing through and when I am accessing the value of cookies, I won't get anything.
Is there any way to get my cookies even if the session has expired?
Please or to participate in this conversation.