diff --git a/config/session.php b/config/session.php index 7978d9fe..12f49d0f 100644 --- a/config/session.php +++ b/config/session.php @@ -66,7 +66,7 @@ return [ | */ - 'files' => storage_path().'/framework/sessions', + 'files' => storage_path('framework/sessions'), /* |-------------------------------------------------------------------------- @@ -159,4 +159,17 @@ return [ 'secure' => false, + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. You are free to modify this option if needed. + | + */ + + 'http_only' => true, + ];