简体   繁体   English

如何在同一服务器上的Web应用程序(Core PHP)和另一个Web应用程序(Laravel)之间共享会话?

[英]How to share Session between Web Application (Core PHP) and another Web Application (Laravel) on Same Server?

I have a web application built on Core PHP and there is a need to build complex module which is decided to be build on Laravel 5.7. 我有一个基于Core PHP的Web应用程序,需要构建复杂的模块,该模块决定在Laravel 5.7上构建。 What I need is without login twice same user should be able to access Core PHP module and Laravel module. 我需要的是无需登录两次,同一用户应该可以访问Core PHP模块和Laravel模块。

Laravel allows several session drivers such as file or database . Laravel允许使用几种会话驱动程序,例如filedatabase If both applications share the file location or database table, it could be possible for them to share the session. 如果两个应用程序共享文件位置或数据库表,则它们可能共享会话。

More information about drivers can be found in the documentation: https://laravel.com/docs/5.7/session#configuration 有关驱动程序的更多信息,请参见文档: https : //laravel.com/docs/5.7/session#configuration

FYI: It will not be easy to do this, and sessions are not supposed to work like this. 仅供参考:做到这一点并不容易,并且会议不应该这样工作。 A better way would be to use a central login system. 更好的方法是使用中央登录系统。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在本机 php 应用程序和 Laravel 应用程序之间共享会话? - How to share session between a native php application and a laravel application? 如何与另一个 PHP 应用程序共享 Laravel 会话? - How do i share Laravel session with another PHP application? PHP Session in 2 Web应用程序 - PHP Session In 2 Web Application Laravel - 如何在两个或多个 web 应用程序之间共享 session? - Laravel - How to share the session between two or more web apps? 如何通过同一域中托管的另一个laravel应用程序访问php应用程序的会话? - How to access session of a php application via another laravel application which hosted in same domain? 如何与php应用程序共享会话 - How to share a session with a php application 在多个Web应用程序之间共享PHP会话 - Share PHP session between multiple web applications 如何监视PHP Laravel Web应用程序进程? - How to monitor PHP Laravel web application processes? 在同一服务器上的PHP代码和.Net应用程序之间共享数据并进行通信 - Share data and communicate between php code and .Net application on the same server 如何在另一个Web应用程序中嵌入Laravel应用程序? - How to embed a Laravel application within another web application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM