3 months ago

How to have multiple domains for COOKIE session?

Posted 3 months ago by MartinZeltin

My application can be accessed using 2 different domain names and

Here is how my routes file looks like

Route::pattern('domain', '(|');
Route::domain('{domain}')->group(function ()
	// Routes here...

But in my config/session.php I can only have one domain...

'domain' => '',

I need to set session cookies for both domains but how can I do this?

Please sign in or create an account to participate in this conversation.