Thank you for your replies. I have noticed one thing, that is that osCsid is changing when I use the search. The session is getting new osCsid when I click on a searched product, that's why the products dissapear.
I tried using Force cookies, but then the site wont work in browsers that block cookie use.