How to implement guide with php's session handling across subdomains in a laravel application
I'm having trouble with session handling in my Laravel application when accessing it across different subdomains. I'm using Laravel 9.x and the sessions seem to be getting lost when I switch from `app.example.com` to `sub.example.com`. I've set my session configuration in `config/session.php` like this: ```php 'same_site' => 'none', 'domain' => '.example.com', 'secure' => true, ``` However, when I check the session data after switching subdomains, it appears to be empty. I've also confirmed that my browser is set to accept cookies and the sessions are correctly being sent with the requests. I tried to debug using Laravel's built-in tools and also checked my PHP version (8.0) to ensure compatibility, but I'm not seeing any relevant errors in the logs. I've cleared my session and config caches multiple times using: ``` php artisan config:cache php artisan cache:clear ``` I've also verified that my `APP_URL` in the `.env` file is set to `https://example.com`. Is there something I'm missing in the session configuration, or any additional steps needed to ensure sessions continue across subdomains in Laravel? Any help would be appreciated! Any ideas what could be causing this?