I have an L5.1 application and am having problems with sessions ending randomly. This happens in my local environment and in a live environment, so this does not seem to be a problem with the server. I am using XAMPP locally with PHP 5.5.11. On a live site there is a dedicated server running Centos 6 with PHP 5.6.13.
The problem arises if I just browse the site in the end after requests drop out on about 20-30 pages, and therefore the user is logged out. I am using a database driver, and here is my session configuration:
<?php return [ 'driver' => 'database', 'lifetime' => 120, 'expire_on_close' => false, 'encrypt' => false, 'files' => storage_path('framework/sessions'), 'connection' => null, 'table' => 'sessions', 'lottery' => [2, 100], 'cookie' => 'laravel_session', 'path' => '/', 'domain' => null, 'secure' => false, ];
Since I do not manually clear the session anywhere, I am sure that nothing I do can cause it. Are there any known errors that may cause this behavior?
geoffs3310
source share