Session is not pertaining in laravel 5.6 when redirecting
I have a project which uses three domain:
Server 1 - Domain1 - Site is in Wordpress(This is using woocommerce to purchase and browse products) Server 2 - Domain2 - Site is in Laravel 5.6(Act as a proxy server - Wordpress is using this proxy server to login, logout and submit order stuff). Server 3 - Domain3 - Site is in angular
When user login on Wordpress, proxy will create a JWT token, save it into session and send it back to wordpress, wordpress will give it back to proxy when user tries to place order in order to get authentication check. But unfortunately, I am not getting any token saved session.
Since, I am not getting any saved session on order submitting I cannot verify the user and unable to create order and any other request made by user.
I am using Laravel 5.6 & session drive file
What I tried:
Moved \Illuminate\Session\Middleware\StartSession::class, from $middlewareGroups to $middleware In web.php tried adding web middleware & removing it as well. Also tried creating new middleware and saved session, but no luck. Clear config & cache Removed files from storage\framework\sessions. BTW files are creating in this directory when a put something in session Used both ways of adding data session(['key'=>'value']) & session()->put(['key','value'] Used Session Facade as well. Changed StartSession class from the middlewareGroups to middleware No luck With all these. One more thing, After session()->put() when I tried to print data on same page from session, it is printed.
Is there something I am missing here?
Please or to participate in this conversation.