Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

neeonline's avatar

Laravel 5.3 and wildcard session.

Hello all,

I have a project that will use wildcard subdomains to configure the UI (companyA.myproject.com, companyB.myproject.com, etc.). This will only be used to load the proper company look and feel.

My problem is, the user can access myproject.com directly and login. After the login it should be redirected to usercompany.myproject.com, but the session is not been shared across the subdomains.

I was reading this question (https://laracasts.com/discuss/channels/servers/different-login-between-domain-and-subdomain), and I want the opposite, lol.

@tankerkiller125 wrote the default in previous versions was wildcard but now looks like they changed it.

Can anyone help/save me?

Appreciate.

0 likes
0 replies

Please or to participate in this conversation.