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

ihabagfa's avatar

share login between laravel site and php site on different sub directories

hello everyone, i need some help in my systems, i have an old system that uses vanilla php in mysite.com/b2b, and a newer laravel system that's in mysite.com/sub, and i want to login one time and go between sites with the same user, both sites are sharing the same database, is there a solution to this please?

0 likes
4 replies
tykus's avatar

How is authentication currently managed on the older PHP application?

Snapey's avatar

you could login on the laravel site and then post the same plain text credentials to the legacy site?

ihabagfa's avatar

@Snapey how about when the laravel session ends ? or the legacy site one ends ? i think that's the best solution is for them both to share sessions but i don't know where to start

Please or to participate in this conversation.