laravel4-starter icon indicating copy to clipboard operation
laravel4-starter copied to clipboard

undefined index 'cookie' (fix added)

Open Edwin-Luijten opened this issue 12 years ago • 0 comments

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',

Edwin-Luijten avatar Feb 13 '13 10:02 Edwin-Luijten