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

technogenes's avatar

Session is killing me

I am setting a variable in session as follows session(['selectedCustomer'=> $customer]); and getting variable as follows $customer = session('selectedCustomer');

When i click on menu multiple times on different links, it is missing the variable or removing it after certain seconds/clicks. I am using it in different controllers.

0 likes
0 replies

Please or to participate in this conversation.