[英]How to share session between a native php application and a laravel application?
I have a native PHP application which has the login.我有一个具有登录名的本机 PHP 应用程序。 I need to use that session from the Laravel application.我需要从 Laravel 应用程序使用该会话。 My PHP app runs on : localhost:80 While my Laravel app runs on localhost:8000我的 PHP 应用程序在 localhost:80 上运行而我的 Laravel 应用程序在 localhost:8000 上运行
I have tried to set the same session name in both and changed the session driver to 'cookie' in the laravel app.我试图在两者中设置相同的会话名称,并在 Laravel 应用程序中将会话驱动程序更改为“cookie”。 but no success.但没有成功。 Then set it to 'native'.然后将其设置为“本机”。 Nothing worked.没有任何效果。 Is there a way to do that.有没有办法做到这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.