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

churocai10's avatar

Problem with form and session variable

Hi, I have the following issue. I have a search engine that takes the value through a form with a select, the search engine works correctly, what happens is that when I press send more than twice the data I have stored in the session variables is erased. Does anyone know what may be causing this?

0 likes
1 reply
jlrdw's avatar

Where's the code where you are storing to session. I normally store something in session in the controller to perhaps use in the view.

Please or to participate in this conversation.