From fa2595b531793b38c14248e7dca55affd6678786 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 26 Sep 2017 12:01:10 -0400 Subject: [PATCH] Set the cookie name using APP_NAME instead of a separate variable --- .env.example | 2 -- config/session.php | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 4bb3604..3fd682f 100644 --- a/.env.example +++ b/.env.example @@ -37,8 +37,6 @@ MAIL_ENCRYPTION=tls MAIL_SENDFROM=null MAIL_SENDTO=null -COOKIE_NAME=hypothetical - MAILCHIMP_APIKEY= MAILCHIMP_LISTID= diff --git a/config/session.php b/config/session.php index 807fdcf..88a6c52 100644 --- a/config/session.php +++ b/config/session.php @@ -122,7 +122,10 @@ return [ | */ - 'cookie' => env('COOKIE_NAME', 'hypothetical'), + 'cookie' => env( + 'SESSION_COOKIE', + str_slug(env('APP_NAME', 'hypothetical'), '_').'_session' + ), /* |--------------------------------------------------------------------------