I
I
Igor2016-03-25 01:46:33
Laravel
Igor, 2016-03-25 01:46:33

With each post request, does laravel add information, a bug or a feature to the session file?

The bottom line is this: I go to the authorization page, press submit to provoke errors, go to the session file and there +160 lines of information. I repeat the procedure - already 800 lines. Once again - 4,000 lines, then it all grows to such volumes (for 4-6 requests 1.2 million characters) that subsequent requests are terminated by the server due to exceeding the allowable script execution time ... Why does this happen and can it be fixed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2016-04-07
@Kraky

I found the source of the problem .. It was in the included barryvdh/laravel-debugbar. It adds all the information about the http request to the session file and does not clean it up.

A
Andrzej Wielski, 2016-03-25
@wielski

Use a different session storage (at least a database, preferably Redis or similar).
But it was advice, and the solution to your problem is extremely simple - delve into the php logs, I'm sure that Laravel cannot delete lines in the file. Maybe it's a matter of rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question