I am having a problem about sessions, or cookies, I didn't understand the reason.
I log on to my site with Auth::attempt($userdata, false)
, which means Laravel should not remember my login, but it remembers whether I use true or false in attempt function.
in app/config/session.php
, variables are determined as
'lifetime' => 120,
'expire_on_close' => true,
Also, when I log in with Auth::attempt($userdata, true)
, 'Auth::viaRemember()'
function returns false
.
Edit: Question solved. Cause of the problem is Chrome. See my answer for detailed information.
$userdata
?dd(Auth::viaRemember())
if it returdn false, then you are either not waiting long enough for sessions to expire, our you are using MAMP, it can happen there.