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

jaysheel's avatar

read subdomain session value from DB

I have a LOGIN laravel app under a subdomain, which open login writes to sessions table using session driver as database. The DATA app uses same laravel APP_KEY and as I understand it should be able to see and read the session info set by LOGIN app. Question is how do I read the session info set by LOGIN app in my DATA app.

Session::all() return null, $_COOKIE['id'] return an id that is different from LOGIN app. and my sessions table only have one entry from the LOGIN app.

Thank you

0 likes
2 replies
jaysheel's avatar

I am following the same directions to create a table and when user log in using the LOGIN app data is stored in the database. But when I open a new browser window/tab I would like to just authenticate the user by looking at the cookie/session that is stored under the same domain

Please or to participate in this conversation.