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

weadonyo's avatar

Laravel Session across subdomain

Hi fellas, I am currently using database session driver to be able to login from example.com and access features from sub.example.com which works fine, I can only login from the PC however on a mobile device I cannot login, when I check within the database the session is created but omitting the "user_id" field. what could be the issue here. am using laravel 10

0 likes
3 replies
vincent15000's avatar

On a mobile device you cannot login. Is it from a mobile application or on the browser on the smartphone ?

vincent15000's avatar

@weadonyo That's strange because it's the same logic to log in, it's from a browser.

Can you give details about the technologies for the back and the front ?

Please or to participate in this conversation.