Session not stored
Hi everyone!
Context: Our main application is based on L4.2. Now we are making some new tools in L5.2 and we will try to migrate all the features from one platform to another, little by little. In order to do that we had configured nginx to serve a our.domain/admin with a new folder with L5.2.
With this configuration, every time we try to login or store anything on the session, it gets lost on the next request. Correction: The session is stored under storage/framework/sessions. So IMHO, (probably) must be some issue in setting the cookie to associate with the session.
Route::get('/admin/test1', function() {
request()->session()->put('test', 'this is a test');
echo Session::get('test'); // 'this is a test'
});
Route::get('/admin/test1', function() {
$var = request()->session()->get('test');
$exists = session()->has('test');
dd($var, $exists); // null, false
});
With the new application in a separated server it works ok, so I would say there's some conflict between the two frameworks configuration.
Do you have any idea?
Thanks!
Please or to participate in this conversation.