Support the ongoing development of Laravel.io →
Installation Authentication Session
Last updated 3 months ago.
0

Ok, so I am monitoring the sessions table and Laravel keeps adding NEW sessions every time I log in or am redirected. Why isn't Laravel using the previous session that was set? I see cookies being set on my browser (Google Chrome).

Last updated 3 months ago.
0

Look in /app/config/session.php under session lifetime.

If it is set to zero (0) change it to 120 or something.

// 'lifetime' =>0,

// change to this
'lifetime' => 120,

Lifetime set to zero has different behaviour in 4.1 and causes the session to be recreated.

Last updated 3 months ago.
0

Thank you sitesense! That fixed it! Wouldn't have guessed that!

Last updated 3 months ago.
0

Sign in to participate in this thread!

LoadForge

Your banner here too?

vstokesjr vstokesjr vstokesjr Joined 17 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.