php - Sharing Laravel Session Across Subdomains CSRF TOKEN MISMATCH
First of all i already did a lot of research on this topic as i didn't want to waste anyone's time but i didn't found concrete answers.
I need to share a laravel session across SubDomains so that when the user logs out of one SubDomains, he logs out of all SubDomains. I currently have two SubDomains (/login_master and /light), and both the session files are configured to use database driver. This is what they look like:
'driver' => env('SESSION_DRIVER', 'database'),
/*
|
Im not sure if the domain is setup correctly (right now it looks like this ".192.168.1.249") and they both have the same cookie name. When i try to login i get token mismatch somehow even tough i have included the CSRF_FIELD in the form that makes the request.
Can anyone shed some light into this issue please?
Thank You
Answer
Answer
Answer
Answer
Answer
Answer