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

jeFFF's avatar
Level 3

Session lost on iOs / Facebook / WebView

Hello all,

I've got a really strange issue with one of my Laravel app. The website is mainly reach via mobile and with the Facebook application, the site is opened with WebView.

In that case and on some devices my scenario is corrupted. The wanted scenario is this :

  1. system detect on the checkout page if the user as already an account
  2. if he has one, the system told him to go to the login page
  3. after login the system redirect to the checkout page with user and cart data

And with that scenario, the system display a 419 page with session expired. It seems that via webview the session data are no longer available.

Did someone experienced this ? Is there some parameters I should check to avoid this issue ?

Thank you

0 likes
3 replies
jeFFF's avatar
Level 3

Hi again,

Just in case, apparently I saved the day by using the session "database" driver. I was suspecting that the issue was linked to session cookies. I haven't tried with memcached or redis as both solutions are not on the server.

Please or to participate in this conversation.