Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

deshiloh's avatar

Form validation and Laravel valet

Hi !

I have an issue with a huge form laravel's application.

I record the post data in the session.

At the beginning, submitted the step 4 gave me a 502 error. I fixed this thanks to this post : https://stackoverflow.com/questions/23844761/upstream-sent-too-big-header-while-reading-response-header-from-upstream but now it seems validations form doesn't show up. They work, but i don't have any message showing. On the production server everything is working.

Any Idea ?

Thanks in advance.

0 likes
1 reply
rodrigo.pedra's avatar
Level 56

What session driver are you using? Depending on the driver you might be hitting a storage limit.

For example the database driver store the session payload on a text column, which is limited by the underlying DBMS implementation, on MySQL it is limited to ~64Kb.

The cookie driver has a ~4Kb limit that is what generally browsers allow a cookie to be sized.

Redis and Memcached driver sure have limits too, but I am not sure which they are.

What I mean is that, depending on the session driver you are using, some of your session content can be lost when persisting the session to storage. As the flash and validation messages are stored in the session itself that can be the reason you are missing it.

Also there is a memory limit per fpm process, maybe your session becomes to huge you hit that limit. From your description this is unlikely to be the cause as your requests are not failing.

Please or to participate in this conversation.