Summer Sale! All accounts are 50% off this week.

ekaitzastiz's avatar

Remember me with REDIS session driver not working (L5.2)

Hi

May be it's not possible and need to implement something. Because, I have the next configuration, and it doesn't work (next day, or some hours later).

I have remember_token on users table.

session.php

'driver' => 'redis'

'lifetime' =>240

'expire_on_close' => false

I have this checkbox in login page and checked as default

 <input type="checkbox" name="remember" checked>

I see the cookie in the browser after login:

remember_web_XXXXXXXXXX

but, after a day, when I go next day to the web, the sessión is closed.

Do I need a middleware or something??

I understand that if I check "remember" lifetime should note expire, and I see on the cookie that de expiration date is 2021 year date..so it looks okey, it's there anything special to do with redis? I see the "laravel:28c435a08da6a5129fe39f853af6ff65aa565b43" in redis ( and the cookie value also is the same for laravel_session) but I don't have any record for remember me, I think that it is because that value is on the DB in remember_token column,...

0 likes
1 reply
ekaitzastiz's avatar

L5.3 has been fixed, it was that $recaller was not beeing decrypt in sessionGuard... but as I said it's fixed.

Please or to participate in this conversation.