简体   繁体   中英

How to share session between a native php application and a laravel application?

I have a native PHP application which has the login. I need to use that session from the Laravel application. My PHP app runs on : localhost:80 While my Laravel app runs on localhost:8000

I have tried to set the same session name in both and changed the session driver to 'cookie' in the laravel app. but no success. Then set it to 'native'. Nothing worked. Is there a way to do that.

It is not possible to share session between servers. Browsers wont share cookies between websites, so the session id wont be shared.

Anyway Laravel doesn't use using php's native session. More info

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM