R
R
Relike2016-01-15 00:56:23
Laravel
Relike, 2016-01-15 00:56:23

Why doesn't Laravel 5 save the session?

Somehow, Laravel 5 stopped storing the session ID in cookies. Each time writes out a new ID. I googled everything in the config, 'secure' => false,although everywhere they say that this is the problem. Session files are created and data is stored there, but the trouble is that the session is not remembered by the client.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stanislav Pochepko, 2016-01-15
@DJZT

Try permissions on the storage folder.

A
Alexey, 2016-01-15
@akeinhell

sudo chmod -R a+w storage

R
Relike, 2016-01-16
@Relike

Solved the problem. It turns out I was just stupid, it connects StartSession to the middleware group 'web'... sorry for the stupid question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question