I am looking for kind help.
I make a fresh installation of Laravel (5.2.15 by this time). I'm not using Homested. I chmod 'storage' directory and subdirectories, as documentation suggests, giving write permission. Session is configured as default, did not touch anything. So session driver is 'file' and path is 'framework/sessions'.
I write these test routes:
Route::get('/', function () {
session(["test" => "ok"]);
return view('welcome');
});
Route::get('/2', function () {
print "session = ".session('test');exit();
});
Shouldn't it be enough to see session working? session('test') is null, and no file is written in framework/sessions. Chmoded 777 framework/sessions folder to be sure, nothing changed.
I'm a newbie at Laravel.. maybe I am missing something? Do i need to set these vars in config/session.php?
'path' => '/',
'domain' => null,
Thank you