Answer the question
In order to leave comments, you need to log in
The csrf token is overwritten. Where to dig?
Standard login form.
{{ csrf_field() }} in the view. Each time a new one when the page is reloaded.
Session::getId() is also new.
It is clear that because of this authorization does not work.
Changed session storage. From files to db. Sessions are created. Both in the file storage and in the database. Those. The problem is not write permissions.
added:
test.php
<?php
session_start();
$_SESSION['a'] = $_SESSION['a']+1;
echo $_SESSION['a'];
Route::get('sesstest', function() {
$v = session('a1');
session(['a1' => $v+1]);
dd(session()->all());
});
array:2 [▼
"_token" => "sUl6aW71By6zBlU9VjsDipK6PqZUa3BYcPb46rbg"
"a1" => 1
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question