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

Viruma's avatar
Level 1

How this session works when the web route hitting from the mobile (React native))

What we are done is, we are just consuming the web routes for the react native application for various reason, First from the backend i'm sending CSRF Token and on frontend (React native), he is login using the login (route or API). after if we do any request from the same mobile its just taking the correct user session without sending session, can anybody explain?

From my R&D I've found the middleware called session manager is doing the magic!, but I want to know how???

#phpSquad

0 likes
2 replies
Snapey's avatar

your browser will still be sending session cookie even though its not part of your payload?

Viruma's avatar
Level 1

Hi @snapey, Thanks for your reply, Yes your are right when the request is made from browser its okay, but in the Front End (React native) there are not storing it or sending it either.

Please or to participate in this conversation.