dimanche 11 février 2018

Laravel Spark Sessions

I have a problem with Laravel spark... I've develop an application and after release at server I have problem with sessions.

Sessions are going expired randomly... Once over 6 hours and once over 2-3minutes... It is very weird...

I am using:

  • Ubuntu 16.04 at DigitalOcean
  • Nginx
  • SSL
  • Laravel 5.4
  • Laravel Spark 4.0 with Braintree

My driver settings (from .env) are

BROADCAST_DRIVER=log
CACHE_DRIVER=redis
SESSION_DRIVER=redis
QUEUE_DRIVER=database

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

Session configs:

'lifetime' => 36500
'expire_on_close' => false
'encrypt' => false
'lottery' => [2, 10000]

Thanks for help :)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire