Skip to content

undefined index 'cookie' (fix added) #1

@Edwin-Luijten

Description

@Edwin-Luijten

A few days ago a new config key appeared, "cookie".
So you get below error after using using your starter app below I added the fix.

ErrorException: Notice: Undefined index: cookie in D:\Development\wamp\www\piercingclopedia\vendor\laravel\framework\src\Illuminate\Session\SessionServiceProvider.php line 97

Fix: Add below snippet in app/config/session.php

/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the cookie used to identify a session
| instance by ID. The name specified here will get used every time a
| new session cookie is created by the framework for every driver.
|
*/
'cookie' => 'laravel_session',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions