From 9f73fcf3080d922a0902f5b94d1ea9f590dd3ecc Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 5 Dec 2018 17:17:11 -0800 Subject: [PATCH] Added #6463 - ability to override session path in .env --- .env.example | 1 + config/session.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index f3bf31a49e..64726c37fd 100644 --- a/.env.example +++ b/.env.example @@ -61,6 +61,7 @@ ENCRYPT=false COOKIE_NAME=snipeit_session COOKIE_DOMAIN=null SECURE_COOKIES=false +SESSION_PATH=null # -------------------------------------------- # OPTIONAL: SECURITY HEADER SETTINGS diff --git a/config/session.php b/config/session.php index 1d36eb4901..d6710975a6 100644 --- a/config/session.php +++ b/config/session.php @@ -67,7 +67,7 @@ return [ | */ - 'files' => storage_path('framework/sessions'), + 'files' => (env('SESSION_PATH')!='' ? env('SESSION_PATH') : storage_path('framework/sessions')), /* |--------------------------------------------------------------------------