A
A
adam_carraway2018-12-21 14:41:55
Laravel
adam_carraway, 2018-12-21 14:41:55

Sessions are not saved in laravel, what should I do?

Transferred the project from the local machine to the hosting and as a result the sessions are not saved.
For any post request, it gives an error 419 Sorry, your session has expired. Please refresh and try again.
I've scoured the internet and tried everything I can. The rights to the bootstrap/cache and storage folders are 777.
After each page refresh, a new session is created and, accordingly, a new file is created in storage/framework/session
How to deal with this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Bille, 2018-12-21
@alexey_bille

Have you generated a key?
php artisan key:generate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question