Everything works fine for few hours and then user gets logged out automatically. I have been unable to find an exact way how to reproduce it, but I see this quite frequently.
I've also noticed that cookie values changes on each request. Probably this is the way Laravel session is supposed to work.
My session.php config file
'driver' => 'memcached',
'lifetime' => 10000,/*around 1 week*/
'expire_on_close' => false,
'files' => storage_path().'/sessions',/*not being used*/
'connection' => null,
'table' => 'sessions',
'lottery' => array(2, 100),
'cookie' => 'example_session',
'path' => '/',
'domain' => '.example.com',
'secure' => false,
Check your php.ini, it has a value for "session.gc_maxlifetime" (and also "session.cookie_lifetime") that sets a limit on how long PHP will allow sessions to last. Maybe that is the culprit?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community