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

Orgil's avatar
Level 2

Token Mismatch Mobile device

When I login to web from mobile device which is iphone I got Token mismatch error . App deployed in Openshift which is Red Hat.

Seems like It is common problem. I found one solution unfortunately It doesn't work

session.php

'domain' => env('SESSION_DOMAIN', 'mydomain.com'),

In local machine. Both desktop, mobile working fine.

I got headache, help me guys...

0 likes
2 replies
tisuchi's avatar
tisuchi
Best Answer
Level 70

Since you added your domain in session domain, that last solution that I can suggest you to use laravel caffeine. https://github.com/GeneaLabs/laravel-caffeine

But before that, make sure that, your mobile browser didn't disabled the cookies.

2 likes
Orgil's avatar
Level 2

@tisuchi Enabling browser cookie did the trick thank you so much!

1 like

Please or to participate in this conversation.